mysql相关的数据源 <data-source key="dataSource" type="org.apache.commons.dbcp.BasicDataSource"> <set-property value="com.mysql.jdbc.Driver" property="driverClassName"/> <set-property value="jdbc:mysql://localhost:3306/democreen" property="url"/> <set-property value="root" property="username"/> <set-property value="bipt" property="password"/> </data-source>