- 博客(3)
- 收藏
- 关注
原创 SpringBoot自动配置笔记
EnableAutoConfiguration自动配置重要的2个注解@AutoConfigurationPackage @Import,给容器中导入一个组件;导入的组件由AutoConfigurationPackages.Registrar.class将主配置类(@SpringBootApplication标注的类)的所在包以及下面所有子包里面的所有组件扫描到Spring容器。(和@ComponentScan区别是其可以指定扫描多个包)。@Import(AutoConfigurationIm.
2021-04-21 16:50:15
127
原创 Mybatis-plus分页 page tatal为0问题
解决方案如下:1.添加如下配置文件@Configurationpublic class MbConfig {@Beanpublic PaginationInterceptor paginationInterceptor() { return new PaginationInterceptor();}}2.去掉pom.xml中的pagehelper插件com.github.pagehelperpagehelper-spring-boot-starter${pagehelper
2020-06-12 12:54:07
476
原创 好的web开发学习网站
一个比较好的web开发学习网站w3school,https://www.w3school.com.cn/,可以当技术手册来看。
2020-03-09 20:37:06
183
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人