web.xml
Archetype Created Web Application
contextConfigLocation
classpath:spring-mybatis.xml
spring.profiles.active
develop
org.springframework.web.context.ContextLoaderListener
org.springframework.web.util.IntrospectorCleanupListener
encodingFilter
org.springframework.web.filter.CharacterEncodingFilter
encoding
UTF-8
encodingFilter
/*
SpringMVC
org.springframework.web.servlet.DispatcherServlet
contextConfigLocation
classpath:spring-mvc.xml
1
SpringMVC
/
/index.jsp
配置了名字为SpringMVC的servlet为DispatcherServlet,配置文件为spring-mvc.xml.xml;
也配置了spring和mybatis整合的spring-mybatis.xml配置文件;
spring-mvc.xml
text/html;charset=UTF-8
spring-mybatus.xml
指定了mysql和redis的property文件:
driver=com