简体   繁体   English

使用 Hibernate 执行 CRUD 操作时出错

[英]Error occurred during performing CRUD operation using Hibernate

Error occurred during initialization of boot layer java.lang.module.FindException: Module java.xml.bind not found.初始化引导层 java.lang.module.FindException 时出错:找不到模块 java.xml.bind。

guys please help me with this.伙计们请帮我解决这个问题。

It's probably due to java version which is greater than java 8 which is causing this issue.这可能是由于 java 版本大于 java 8 导致此问题。 Refer this post for fix:请参阅此帖子进行修复:

Java 11 package javax.xml.bind does not exist Java 11 package javax.xml.bind不存在

Your error may be due to the Jaxb library that has been removed from java 9 onwards, if you use maven add:您的错误可能是由于 Jaxb 库已从 java 9 开始删除,如果您使用 maven 添加:

<dependency>
    <groupId>javax.xml.bind</groupId>
    <artifactId>jaxb-api</artifactId>
    <version>2.3.1</version>
</dependency>

Or read this article https://www.jesperdj.com/2018/09/30/jaxb-on-java-9-10-11-and-beyond/或阅读这篇文章https://www.jesperdj.com/2018/09/30/jaxb-on-java-9-10-11-and-beyond/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在IBM中执行联合操作时发生错误 - Error occurred while performing the joint operation in IBM 使用休眠+球衣ws进行CRUD操作 - CRUD operation using hibernate + jersey ws 使用Rserve执行“ for”循环时发生错误 - An error occurred while performing the 'for' loop using Rserve 如何使用Hibernate for CRUD操作在Java中创建泛型方法 - How to create a generic method in java using Hibernate for CRUD operation 通过注释使用休眠模板进行Spring MVC CRUD操作 - Spring MVC CRUD operation using hibernate tempate integration by annotation Java Azure 函数在本地运行期间抛出错误 - 在启动操作期间发生主机错误 - Java Azure Functions throws error during running locally - A host error has occurred during startup operation 执行加载命令时出错:调用属性[Hibernate]的setter时发生IllegalArgumentException - Error performing load command : IllegalArgumentException occurred while calling setter for property [Hibernate] 休眠过滤器不适用于 FindOne CRUD 操作 - Hibernate Filter is not applied for FindOne CRUD operation 对从Web服务获得的海量数据执行CRUD操作 - Performing CRUD operation on massive data attained from a Web-Service 在Spring / Hibernate中执行CRUD操作时抛出正确的异常 - Throwing the correct exceptions while performing CRUD operations in Spring/Hibernate
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM