日期:2014-05-17 浏览次数:21414 次
<?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>
推荐阅读更多>
-
一个静态方法能够将另一个静态方法作为参数吗?该怎么处理
-
!散分!年把不见[jFresh-Man]了,不知他高升泡妞出国仍是没声响了
-
简历有人看,没人打电话为什么呢?解决方法
-
白天在学校,晚上在外面,怎么搞开发?能不能把proj上传到通用的服务器上?能不能使用类似vss之类的 工具
-
系统异常页面
-
分布式数据库有关问题,怎么保证数据一致性
-
jstl sql标签 和servlet 在jsp页面,该如何处理
-
jsp 导出成CSV文件,中文乱码有关问题
-
还有200分,新人继续散分,多余的话不多说。还是祝福解决办法
-
一个关于自动登录的有关问题 特殊网络上面对Cookie的操作
-
子类继承父类有关问题
-
帮忙看一下struts2配置的有关问题
-
int转string型,说说哪个效率高,之后做项目习惯用哪种转型
-
神,救救小弟我把
-
Exception in thread "AWT-EventQueue-0"解决思路
-
请教:把数据库驱动empressJDBC_cat4.jar打包进client.jar,运行client.jar找不到数据库驱动,为啥
-
为何会报空指针错误
-
找不到session符号无法通过编译,该怎么处理
-
急为什么总是报错''附近有语法异常
-
这个回想错哪部了