Spring
文章平均质量分 76
行_天下
这个作者很懒,什么都没留下…
展开
-
web配置文件与Spring详解
在web.xml中定义contentConfigLocation参数,Spring会使用这个参数加载所有逗号分隔的.xml文件,Spring默认加载web-INF下的applicationContext.xml文件.<content-param> <param-name>contentConfigLocation</param-name>...原创 2018-06-15 11:59:23 · 165 阅读 · 0 评论 -
applicationContent实例化
applicationContext是spring中较高级的容器,与BeanFactory类似,他可以加在配置文件中的bean,将多个bean集中在一起,当请求时分配bean.另外,它增加了企业所需要的功能,比如,从属性文件从解析文本信息和将事件传递给所指定的监听器。这个容器在 org.springframework.context.ApplicationContext interface...原创 2018-06-15 14:45:16 · 1969 阅读 · 0 评论 -
Spring的核心思想
Spring的核心思想是IOC和AOP.IOC:控制反转,核心:对象的创建交给配置文件来管理.public class TestClass(){ public void getTest(){system.out.print(".....TestClass.......")}} 配置文件:<beans> <bean id="test...原创 2018-06-17 10:38:39 · 144 阅读 · 0 评论 -
Spring7大模块
Spring是一个分层框架,它有七个模块组成;每个模块可以相互独立存在于项目中,同时每个模块又可以被其他第三方的框架兼容使用;Spring的7大模块分别为:spring Core、Spring Context、Spring AOP、Spring ORM、Spring Dao、Spring MVC、spring web,其框架结构如下图所示: 7大模块介绍:Spring core:它...原创 2018-06-21 11:52:28 · 774 阅读 · 0 评论