2017年3月30日

【spring mvc】基础概念

摘要: 1、容器 servlet容器 负责管理servlet生命周期。 web容器–tomcat 负责管理和部署web应用,其本身可能具备servlet容器组件;如果没有,一般能将第三方servlet容器作为组件整合进web容器。 web容器好比”电视机”,servlet容器好比”VCD”。没有VCD你可以 阅读全文

posted @ 2017-03-30 10:54 韩小亖 阅读(212) 评论(0) 推荐(0) 编辑

【spring mvc】扒一扒tomcat

摘要: 1、TOMCAT的目录 主要说一下webapps目录,WEB应用的目录结构:假设在$CATALINA_HOME/webapps下有helloapp的web应用 /helloapp:Web应用的根目录,所有的jsp文件和html文件都在此目录下 /helloapp/WEB_INF:存放该web应用发布 阅读全文

posted @ 2017-03-30 10:48 韩小亖 阅读(752) 评论(0) 推荐(0) 编辑

【spring mvc】application context中【bean】的生命周期

摘要: 生命周期过程 生命周期过程 主要分为四部分: 一、实例化 1. 当调用者通过 getBean( name )向 容器寻找Bean 时,如果容器注册了org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessor 阅读全文

posted @ 2017-03-30 10:39 韩小亖 阅读(1449) 评论(0) 推荐(0) 编辑

导航