摘要:
Mybatis和Spring的整合: @MapperScan注解通过@Import方法导入MapperScannerRegistrar类,MapperScannerRegistrar实现了ImportBeanDefinitionRegistrar接口,覆写了registerBeanDefinitio 阅读全文
posted @ 2022-01-23 19:44
安小
阅读(53)
评论(0)
推荐(0)
摘要:
1、Spring bean的几种定义方式 1)声明式:基于XML的方式 <bean id="user" class="com.test.User"/> 2)声明式:基于@Component注解 @Component public class User {} 3)声明式:基于@Bean注解 @Comp 阅读全文
posted @ 2022-01-23 18:38
安小
阅读(64)
评论(0)
推荐(0)
浙公网安备 33010602011771号