日期:2014-05-17 浏览次数:20843 次
<?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>
![]()
推荐阅读更多>
- 使用hibernate和Sturts2的时候 如何用url传值
- url 中文参数的一个有关问题
- 一个关于DoWhile循环的小小例子!解决方法
- 竞赛题目、求牛人解答、JAVA算法题、有时间限制,该怎么处理
- [毕业设计出大麻烦了,心急如焚啊]tomcat http statu 500异常!请迷津!
- JFreeChart生成的折线图一部分汉字没识别
- extjs+struts例子
- spring+xfire有关问题
- 想写一个类似QQ的JAVA通信程序,是否该用线程池?解决思路
- jsp 连 sql2005一直出这个有关问题怎么处理
- 播放列表用什么制作,该怎么解决
- EL表达式在weblogic8中没法使用
- 小弟我的Socket程序执行后 网络居然ping不通了!
- 用Java写一个类似于屏保的程序。解决方案
- 写在毕业季-4年计算机科学与技术专业,小弟我终于要毕业了
- 哪位高手能给小弟我看一下这个代码。
- 这样读写文件为什么文件总是会比原来的小?头疼。解决方法
- 跳到servlet显示空白页的有关问题 请指点 多谢
- 关于在线视频技术!该怎么处理
- java 中关于线程同步的有关问题