ssm框架整合配置---web.xml,傻傻分不清楚
来源:互联网 发布:一键制作rez源码 编辑:程序博客网 时间:2024/05/18 16:39
web.xml
<?xml version="1.0" encoding="UTF-8"?><web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"> <display-name></display-name> <!-- 404错误拦截 --> <error-page> <error-code>404</error-code> <location>/error404.jsp</location> </error-page> <!-- 500错误拦截 --> <error-page> <error-code>500</error-code> <location>/error500.jsp</location> </error-page> <!-- 加载spring容器 --> <context-param> <param-name>contextConfigLocation</param-name> <param-value>WEB-INF/classes/spring/applicationContext-*.xml</param-value> </context-param> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> <!-- 配置前端控制器 --> <servlet> <servlet-name>spring</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <init-param> <!-- ContextconfigLocation配置springmvc加载的配置文件 适配器、处理映射器等 --> <param-name>contextConfigLocation</param-name> <param-value>WEB-INF/classes/spring/springmvc.xml</param-value> </init-param> </servlet> <servlet-mapping> <servlet-name>spring</servlet-name> <!-- 1、.action访问以.action结尾的 由DispatcherServlet进行解析 2、/,所有访问都由DispatcherServlet进行解析 --> <url-pattern>/</url-pattern> </servlet-mapping> <!-- 解决post乱码问题的过滤器 --> <filter> <filter-name>CharacterEncodingFilter</filter-name> <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class> <init-param> <param-name>encoding</param-name> <param-value>utf-8</param-value> </init-param> </filter> <filter-mapping> <filter-name>CharacterEncodingFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <welcome-file-list> <welcome-file>welcome.jsp</welcome-file> </welcome-file-list> </web-app>
阅读全文
0 0
- ssm框架整合配置---web.xml,傻傻分不清楚
- 傻傻分不清楚---运筹学
- 【SSM整合】-三框架整合xml文件结构及相应web.xml配置
- 《八位,十六位,傻傻分不清楚》
- session?用户?傻傻分不清楚
- Cookie、Session傻傻分不清楚
- ""和null,傻傻分不清楚
- 金属,塑料,傻傻分不清楚
- 对象,数组,傻傻分不清楚
- 【SSM整合】-Maven管理SSM框架的pom.xml配置
- 文科,理科,傻傻分不清楚……
- MVP, MVC, MVVM, 傻傻分不清楚~
- 排序?重叠数?傻傻分不清楚
- jQuery、DOM对象傻傻分不清楚
- jQuery、DOM对象傻傻分不清楚
- dp、sp、px傻傻分不清楚[完整]
- UML关联组合聚合傻傻分不清楚
- android点击、触摸、选中傻傻分不清楚
- 数据结构实验7 建立邻接表
- 书写sql案例
- git使用
- mysql 安装初始化 Neither host nor 'localhost' could be looked up
- MQ消息架构设计五(58到家MQ如何快速实现流量削峰填谷)
- ssm框架整合配置---web.xml,傻傻分不清楚
- JavaWeb笔记之快速了解网络协议
- 代码重构-常量相关
- java反射加载类,并转化为DataFrame
- Hive的用户和用户权限
- Scala高阶函数
- eclipse自动生成的get方法里给字段添加this
- Retrofit2.0使用总结
- Qt自定义/绘制旋钮控件