摘要: 一、@Configuration+@Bean @Configuration:配置类==配置文件 @Bean:给容器中注册一个Bean;类型为返回值的类型,默认是用方法名作为id @Bean("person") public Person person01(){ return new Person() 阅读全文
posted @ 2020-08-05 23:31 edda_huang 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 在Executor、StatementHandler、parameterHandler、resultSetHandler创建的时候都有一步这样的操作xxxHandler=interceptorChain.pluginAll(xxxHandler);而这个方法会获取到所有的Interceptor(拦截 阅读全文
posted @ 2020-08-05 14:22 edda_huang 阅读(97) 评论(0) 推荐(0) 编辑