<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close" scope="singleton">
<property name="driverClassName" value="${driver}"/>
<property name="url" value="${url}"/>
<property name="username" value="${user}"/>
<property name="password" value="${password}"/>
</bean>database.properties 文件
driver=com.mysql.jdbc.Driver
url=jdbc:mysql://127.0.0.1:3306/?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8user=wzp
password=root怎么回事啊?我windows下tomcat好使能正常读取database.properties,放到linux下的环境就不好使了怎么办?
1 回答
- 1 回答
- 0 关注
- 979 浏览
添加回答
举报
0/150
提交
取消