日期:2014-05-17 浏览次数:21261 次
<?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>
推荐阅读更多>
-
点关闭按钮让面板封闭
-
java swing中 jTable 的使用有关问题
-
javascript 选中文字 但是保存样式 标签
-
性命如水
-
网页中applet当调用第三方jar包时,applet不显示.解决思路
-
一个关于分页的有关问题
-
J2EE开发者交流平台QQ群 157022756解决办法
-
Java中的键盘监听,该怎么处理
-
何位好大哥可以提供spring+hibernate+structs的源码小弟学习一下
-
JPA 里面可以配置生成数据库表字段注释(COLUMN_COMMENT)吗?解决方案
-
httpclient老是提示java.lang.NoSuchMethodError: org.apache.http.protocol.BasicHttpCon
-
一个关于select中option 的有关问题
-
JAVA字符用的Unicode编码,为何转换成byte[]却又变成国标码GB2312?解决方案
-
关于struts2 与 Spring 的有关问题
-
开源或免费的JSP博客系统(要求是用户的最好是中文的)
-
多线程读写文件解决方案
-
ajax4jsf让小弟我很失望,大家来看看吧
-
,怎么用Java&Js实现悬浮对比框功能
-
String 类型转换成Date类型解决思路
-
Hibernate很不能让人理解的有关问题