日期:2014-05-17 浏览次数:20699 次
<?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>
![]()
推荐阅读更多>
- 列出101到200以内所有的质数出现有关问题
- 大文件排序有关问题
- 坦克死火了,为何!
- tomcat的页面连接池无法使用 (急)
- 接口的小疑点
- java.text.ParseException: Unparseable date: "2009-11-01 00:
- jstl不能运用
- struts2 提交表单不能跳转页面有关问题!action已经执行,但是不能跳转到指定的页面
- 请帮小弟我看看为什么变量id没有自增
- 有个程序的某个地方看不明白,请大家帮帮忙解决方案
- JAVA基础应用: 怎么实现希尔排序算法
- 高校计算机理论知识重要吗
- 创建一个类,在另一个类中调用其方法,该如何解决
- 又来送分:心疼 (就怕贼惦念)
- 各位看官帮小弟我写段代码吧
- 多个网页公共的导航栏解决方案
- 初学者一枚JAVA反射的作用
- 怎么用java代码 获取打印机列表
- java程序如何避免病毒攻击
- 关于经纬度的算法。解决方案