【问题标题】:Reverse engineering with hibernate on a maven project using MySQL在使用 MySQL 的 maven 项目上使用 hibernate 进行逆向工程
【发布时间】:2020-06-09 01:57:16
【问题描述】:

我正在尝试在使用 MySQL 作为数据库的 maven 项目上应用 hibernate 逆向工程,我已经从市场上安装了 jBOSS,并且配置属性已成功创建,因为我对 java.lang.runtimeexception java 有问题.lang.reflect.invocationtargetexc

【问题讨论】:

  • 请提供完整的堆栈跟踪,与问题相关的代码。
  • 我在主题中添加了屏幕图片

标签: mysql hibernate maven


【解决方案1】:

这个问题是由于缺少你的 maven 项目的依赖项来解决,试图在你的项目中添加这些依赖项

<dependency>
    <groupId>hibernate</groupId>
    <artifactId>hibernate3</artifactId>
    <version>3.2.3.GA</version>
</dependency>

<dependency>
    <groupId>junit</groupId>
    <artifactId>junit</artifactId>
    <version>3.8.1</version>
    <scope>test</scope>
</dependency>

<dependency>
    <groupId>mysql</groupId>
    <artifactId>mysql-connector-java</artifactId>
    <version>5.1.9</version>
</dependency>

【讨论】:

  • JUnit 与这个问题有什么关系?
  • 感谢重播,问题出在hibernate artifactId我写错了,再次感谢
猜你喜欢
  • 2011-03-13
  • 2012-03-10
  • 2013-01-19
  • 2021-05-14
  • 1970-01-01
  • 1970-01-01
  • 2011-02-20
  • 1970-01-01
  • 2015-02-11
相关资源
最近更新 更多