日期:2014-05-17 浏览次数:20724 次
<?xml version="1.0" encoding="UTF-8"?> <web-app> <servlet-mapping> <servlet-name>default</servlet-name> <url-pattern>*.jpg</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>default</servlet-name> <url-pattern>*.png</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>default</servlet-name> <url-pattern>*.gif</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>default</servlet-name> <url-pattern>*.js</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>default</servlet-name> <url-pattern>*.css</url-pattern> </servlet-mapping> <servlet> <servlet-name>spring</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>spring</servlet-name> <url-pattern>/</url-pattern> </servlet-mapping> <welcome-file-list> <welcome-file>login.jsp</welcome-file> </welcome-file-list> </web-app>
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:p="http://www.springframework.org/schema/p" xmlns:context="http://www.springframework.org/schema/context" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd"> <!-- 自动扫描的包名 --> <context:component-scan base-package="cn.spring.app.controller" /> <!-- 默认的注解映射的支持 --> <mvc:annotation-driven /> <!-- 视图解释类 --> <bean class="org.springframework.web.servlet.view.InternalResourceViewResolver"> <property name="prefix" value="/WEB-INF/jsp/" /> <property name="suffix" value=".jsp" /> <property name="viewClass" value="org.springframework.web.servlet.view.JstlView" /> </bean> <!-- 拦截器 --> <!-- 对静态资源文件的访问 --> <mvc:default-servlet-handler /> </beans>
![]()
推荐阅读更多>
- static final int i;若不赋值就失误,求内存解释
- org.hibernate.exception.SQLGrammarException错误有关问题
- div定位有关问题(当点击一个图片按纽,图片居中显示)
- 在Appl用里面用什么命令可以关闭Applet?解决方案
- 如何也没看出有关问题,但就是运行不对。
- spring 中的BeanPostProcessor接口解决思路
- 菜鸟新手小菜求大神帮忙啊
- 大家帮小弟我解释下什么叫电信增值业务,并举几个例子
- ftl freemarker 空值如何判断 escape没多大用
- 求指点 在线 急呀 struts2 加完filter 不执行 获得路径代码 求指点 多谢在线
- Connections could not be acquired from the underlying database!
- ADT作业,帮小弟我做做吧!
- apache代理的有关问题,求高手解答
- 在相应的 try 语句主体中不能抛出错误的有关问题
- 怎们能够当小弟我点击按钮的时候 跳转到小弟我指定的页面 为什么下面的已经改变了值,也不能跳转那
- JAVA 开源网上商城都有哪些,该怎么解决
- JRadioButton的初始的是否可选性设置解决方案
- Dos停编译运行java,怎样快速打开Dos窗口
- 帮小弟我理个学习JAVA WEB思路
- 无意发现一个servlet有关问题,百思不得其解,怪哉.怪哉.怪哉.