spring配置文件的详细解析

来源:互联网 发布:mac 不生成 ds store 编辑:程序博客网 时间:2024/05/01 07:15





Spring 分别提供了用于启动WebApplicationContext的Servlet和WEB容器监听器。


org.spring.framewokr.web.context.ContextLoaderServlet;

org.spring.framework.web.context.Context.ContextLoaderListener;

两者内部都实现了启动WebApplicationConext实例的逻辑,任选其一都可以,在web.xml中配置即可。



日志配置








使用注解@Configuration的Java类提供配置信息的配置:











0 0
原创粉丝点击