SSH笔记三 反向生成DAO 优化开发目录
2009-09-23 00:00:00 来源:WEB开发网# database connection to data warehouse
#
ssimdb.mysql.url=jdbc\:mysql\://localhost\:3306/ssimdb
ssimdb.mysql.username=root
#密码设置为自己的密码。tomcyj是我的密码哈
ssimdb.mysql.password=tomcyj
# debug information
#
hibernate.show_sql=false
3.2 修改application-conten.xml,如下
<?xml version="1.0" encoding="UTF-8"?>
<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
<import resource="beans/data-source.xml" />
<import resource="beans/ssim-dao.xml" />
<bean id="configurator" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>ssimdb-config.properties</value>
</list>
</property>
</bean>
</beans>
更多精彩
赞助商链接