直接使用创建简单的maven项目,当需要添加hibernate的配置文件(hibernate.cfg.xml)的时候,会发现IDEA在new的时候并没有这个模板,在这里就需要在Project Structure里的Module添加hibernate
IDEA给新建的项目添加hibernate的配置文件
然后添加Descriptor了,就是点击如图右上角的加号,就可以自动提示你进行添加hibernate.cfg.xml这个配置文件到resources下

相关文章:

  • 2022-01-15
  • 2022-12-23
  • 2022-12-23
  • 2021-10-03
  • 2022-01-07
  • 2021-12-12
  • 2022-01-16
  • 2021-12-02
猜你喜欢
  • 2022-12-23
  • 2021-09-16
  • 2022-12-23
  • 2021-10-29
  • 2021-04-19
  • 2021-11-19
相关资源
相似解决方案