![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
框架
筱筱鹿丸
这个作者很懒,什么都没留下…
展开
-
spring依赖注入
依赖注入触发方式:1.getbean触发2.lazy-init=false,即让容器在解析注册 Bean 定义时进行预实例化触发。如果 Bean 定义的单例模式(Singleton),则容器在创建之前先从缓存中查找,以确保整个容器中只存在一个实例对象。如果 Bean定义的是原型模式(Prototype),则容器每次都会创建一个新的实例对象。除此之外,Bean 定义还可以扩展为指定其生命周期范围。依赖注入2个阶段:(1).createBeanInstance:生成 Bean 所包含的 java 对象原创 2020-10-12 14:25:46 · 77 阅读 · 0 评论 -
spring ioc加载
spring ioc容器初始化ioc容器创建过程:定位、载入、注册XmlBeanFactory//根据 Xml 配置文件创建 Resource 资源对象,该对象中包含了 BeanDefinition 的信息ClassPathResource resource =new ClassPathResource("application-context.xml");//创建 DefaultListableBeanFactoryDefaultListableBeanFactory factory =new原创 2020-10-10 22:38:24 · 76 阅读 · 0 评论 -
spring中使用redis事务
https://www.cnblogs.com/grey-wolf/p/10142937.html`//execute a transactionList txResults = redisTemplate.execute(new SessionCallback<List>() {public List execute(RedisOperations operations) throws DataAccessException {operations.multi();operation转载 2020-05-28 17:22:09 · 146 阅读 · 0 评论 -
spring事务隔离级别和传播机制
https://www.cnblogs.com/mseddl/p/11577846.htmlhttps://www.cnblogs.com/eunice-sun/p/11024584.html转载 2020-05-28 16:15:22 · 120 阅读 · 0 评论 -
Spring 面试问题 TOP 50
Spring 面试问题 TOP 50https://www.cnblogs.com/jingmoxukong/p/9408037.html转载 2018-12-04 15:35:56 · 76 阅读 · 0 评论 -
hiberbate mybatis ibatis对比
https://www.cnblogs.com/inspurhaitian/p/4647485.htmlhttps://blog.csdn.net/qq_21033663/article/details/50281161ibatis与mybatis区别?ibatis是mybatis的前身,在2010年7\8月份ibatis所项目移到了google,就将ibatis3.x正式改名为mybati...转载 2019-02-27 15:58:30 · 144 阅读 · 0 评论 -
spring非侵入式理解
假设大家都想要把用户代码塞到一个框架里。侵入式的做法就是要求用户代码“知道”框架的代码,表现为用户代码需要继承框架提供的类。非侵入式则不需要用户代码引入框架代码的信息,从类的编写者角度来看,察觉不到框架的存在。例如:1)使用struts的时候,我需要继承一些struts的类,这时struts侵入到了我的代码里。2)使用spring,编写一些业务类的时候不需要继承spring特定的类,通过配置...转载 2019-02-27 16:53:19 · 737 阅读 · 0 评论 -
springMVC传参过程中遇到这样一个错误:Could not instantiate bean class [java.util.List]: Specified class is an inte
springMVC传参过程中遇到这样一个错误:Could not instantiate bean class [java.util.List]: Specified class is an interface] with root cause解决方案:ArrayList<MultipartFile> files5 将List接口改为ArrayList即可....原创 2019-07-17 09:44:17 · 936 阅读 · 0 评论 -
Connection is read-only. Queries leading to data modification are not allowed
Connection is read-only. Queries leading to data modification are not allowedhttps://www.cnblogs.com/fiving1314/p/8534680.html转载 2019-07-29 11:49:43 · 111 阅读 · 0 评论