基于Mybatis的bookstore架构模型

1 <configuration> 2 <settings> 3 <setting name="cacheEnabled" value="true"/> 4 </settings> 5 <environments default="test"> 6 <environment id="test"> 7 <transactionManager type="JDBC"></transactionManager> 8 <dataSource type="POOLED"> 9 <property name="driver" value="com.mysql.jdbc.Driver"/> 10 <property name="url" value="jdbc:mysql://localhost:3306/bookstore?characterEncoding=UTF-8"/> 11 <property name="username" value="***"/> 12 <property name="password" value="****"/> 13 </dataSource> 14 </environment> 15 </environments> 16 <mappers> 17 <mapper resource="com/chinasofti/bookstore/dao/TypesDao.xml"/> 18 <mapper resource="com/chinasofti/bookstore/dao/BookDao.xml"/> 19 </mappers> 20 </configuration>

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/zyxjpp.html