Hibernate+maven+eclipse 实现自动建表(三)
.jdbc.Driver
复制代码
test.properties
hibernate.credit.url=jdbc:
mysql://127.0.0.1:3306/juxinli_credit useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true
hibernate.credit.username=root
hibernate.credit.password=root
hibernate.credit.min_size=5
在pom.xml 中 之后,加上如下配置:
复制代码
复制代码
在使用maven打war包时:
1)可以手动运行命令:
mvn package -Ptest
这样表示的是打id为test的war包。
2)也可以采用:项目名称,鼠标右键Run As--> Maven install 进行打包。