spring boot 配置MyBatis,支持多个数据源和分页插件

spring boot中的MyBatis配置是比较复杂的。 下面总结针对mySql数据库的配置和使用的详细过程(有两个数据库:名字为test和my_db): 1、引入依赖: pom.xml文件中,添加: [html]  view plain  copy <!-- Begin of DB related -->       <dependency> <!-- for ChainedTransacti
相关文章
相关标签/搜索