摘要:
首先创建一个属性文件:application.properties 如下:jdbc.driver=com.mysql.jdbc.Driverjdbc.url=jdbc\:mysql\://localhost\:3306/xxxjdbc.username=rootjdbc.password=root#hibernate settingshibernate.show_sql=truehibernate.format_sql=true然后创建一个读取properties的类:PropertyReader.java假设路径为:com.xxx.common\PropertyReader.javaView 阅读全文
posted @ 2013-04-14 14:50
Free_rein
阅读(995)
评论(0)
推荐(0)
浙公网安备 33010602011771号