作者:曾明铭智瑜淑岳 | 来源:互联网 | 2018-04-26 06:09
jdbc配置:driverClasscom.mysql.jdbc.Driverurljdbc:mysql:localhost:3306mydatauserrootpasswordroot当数据库中没有mydata表时,无法自动创建,且tomcat启动不了,停留在InitializingSpringrootWebApplicationContext。如果手动创建mydata表,tomcat可以启动,项目也能运行。hibernate配置:<!DOCTYPEh
mysqltomcatjavassh
jdbc配置:
driverClass=com.mysql.jdbc.Driver
url=jdbc:mysql://localhost:3306/mydata
user=root
password=root
当数据库中没有mydata表时,无法自动创建,且tomcat启动不了,停留在Initializing Spring root WebApplicationContext。如果手动创建mydata表,tomcat可以启动,项目也能运行。hibernate配置:
org.hibernate.dialect.SQLServerDialect org.hibernate.cache.EhCacheRegionFactory true update true