![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Spring
文章平均质量分 55
iteye_11287
这个作者很懒,什么都没留下…
展开
-
Sping mvc DispatcherServlet 处理请求的详细过程
1. 通过WebApplicationContext, 根据request 搜索一些属性,并绑定到request上2. 通过 Local Resovler ,判定出本地化资源,绑定到request上3. 通过 Theme Resovler ,判定出主题资源,绑定到request上4. 如果指定了 multipart resovler ,multipart resolver 会判断...原创 2014-12-31 12:05:20 · 77 阅读 · 0 评论 -
Sping 中的 beanFactory 与 FactoryBean
Spring 中有两个最最基本的接口:BeanFactory 与 FactoryBean,可以说是核心中的核心。简单的说,BeanFactory就是容器提供给使用者获取Bean的接口,Spring中的ApplicationContext 就是实现了这个接口。粗糙的理解:BeanFactory就是容器。而FactoryBean则是产生Bean的工厂,许多时候,简单的通过Spring 实...原创 2015-01-22 00:35:05 · 71 阅读 · 0 评论 -
Spring 事务配置时漏写一行引起Write operations are not allowed in read-only mode
Spring 事务配置时漏写一行引起Write operations are not allowed in read-only mode 这一行是:<tx:annotation-driven />原创 2015-02-03 01:43:12 · 86 阅读 · 0 评论 -
spring 多环境配置
常常在开发,测试,发布时的配置是不一样的,比如数据库连接,那么要创建bean的时候,就得给不同的参数,这一点,spring 4 已经考虑到了。主要是使用以下几点1. xml 配置文件的末尾,写 <beans profile="xxx" >...</beans>, xxx 表明profile的名字,可以任意取,注意:这部份内容必须写在所有配置之后。以下的例子就配置了开...原创 2015-05-20 01:26:53 · 100 阅读 · 0 评论