首页 > 编程语言 > 详细

SpringMVC 2

时间:2018-05-31 10:11:41      阅读:149      评论:0      收藏:0      [点我收藏+]
package spring_mvc;

public class Two {

    public static void main(String[] args) {

        /**
         *1. DispatherServlet的配置---实现?
         * 1)在web.xml上配置
         * 2)配置在Servlet上(Servlet3.0,Spring3.1以上版本,Tomcat7及以上版本),继承。。。类。servlet发现了他,并将它配置到Servlet上下文。
         * 
         * 
         * 
         * 2.配置文件的加载
         * DispatherServlet与ContextLoaderListener
         * 1)DispatherServlet:启动时创建Spring应用上下文  
         * getServletConfigClass()方法返回带有注解@Configuration的类,定义DispatherServlet产生的上下文
         * 2)ContextLoaderListener:启动时创建另外的应用上下文
         * getRootConfigClass()返回带有注解@Configuration的类,定义ContextLoaderListener产生的上下文
         * 
         * 
         * 3,。SpringMVC启用
         */
    }

}

 

SpringMVC 2

原文:https://www.cnblogs.com/lxh520/p/9114597.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!