Spring使用配置文件读取jdbc.properties 在beans.xml中加入两个必须的bean [html]<bean /> </bean> 在web-inf下面的jdbc.properties [html]jdbc.driverClassName=com.mysql.jdbc.Driver jdbc.url=jdbc:mysql://210.30.12.3:3306/spring jdbc.username=root jdbc.password=sa 相关文章: