第276天学习打卡(知识点回顾 springboot整合mybatis-plus)
springboot整合Mybatis-plus
自动配置
-
MyBatisPlusAutoConfiguration配置类,MyBatisPlusProperties配置项绑定。mybatis-plus:xxx就是对mybatis-plus的定制
-
-
mapperLocations自动配置好的。有默认值。classpath* :/mapper/* * / *.xml;任意包的类路径下的所有mapper文件夹下任意路径下的所有xml都是sql映射文件。减一以后sql映射文件,放在mapper下
-
容器也自动配置好了SqlSessionTemplate
-
@Mapper标注的接口也会被自动扫描;建议直接@MapperScane("")批量扫描即可