塌鼻子巴巴鲁
2019-01-21 00:39使用maven+spring+hibernate开发时,无法自动在数据库中建表?
20在maven中,使用spring整合hibernate时,实体类,映射文件,applicationcontext.xml中都没问题,但就是不能在数据库中自动建表。控制台也没报任何错误。具体如下:
困扰了好几个小时了,希望各位朋友帮忙解答!
补充:我重新创建了一个工程,没有使用maven,也是一个实体类,映射文件,applicationcontext.xml,运行后能在数据库中生成表。
- 点赞
- 回答
- 收藏
- 复制链接分享
2条回答
为你推荐
- SpringBoot + MyBatis 内部实体类属性与数据库的对应关系
- java
- hibernate
- intellij-idea
- spring
- maven
- 2个回答
- 关于Spring boot + SpringSecurity +jwt token失效的问题
- spring
- maven
- 2个回答
- SpringBoot+JPA死锁问题
- spring
- maven
- hibernate
- eclipse
- java-ee
- 2个回答
- MavenWeb项目使用mybatis的分页查询插件,在项目部署时出现错误
- java
- github
- spring
- maven
- tomcat
- 2个回答
- 在IntelliJ IDEA上使用Maven创建Spring项目HelloWorld
- spring
- maven
- intellij-idea
- 7个回答
换一换