<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下的环境就不好使了怎么办?
相关分类