1、Servlet配置如下:

<?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:p="http://www.springframework.org/schema/p"
xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:context="http://www.springframework.org/schema/context"
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/mvc
http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd"> <!-- 声明使用注解的风格 -->
<context:annotation-config />
<!-- 开启mvc注解 -->
<mvc:annotation-driven />
<!-- 静态资源(js/image)的访问 -->
<mvc:resources location="/WEB-INF/res/img/" mapping="/img/**" />
<mvc:resources location="/WEB-INF/res/css/" mapping="/css/**" />
<mvc:resources location="/WEB-INF/res/js/" mapping="/js/**" /> <context:component-scan base-package="nankang/controller" />
<!-- 定义视图解析器 -->
<bean
class="org.springframework.web.servlet.view.InternalResourceViewResolver"
p:viewClass="org.springframework.web.servlet.view.JstlView" p:prefix="/WEB-INF/page/"
p:suffix=".jsp">
</bean> </beans>

2、

最新文章

  1. AndroidStudio使用过程中遇到的bug
  2. [Ubuntu] google chrome乱码
  3. Laravel 5 基础(十二)- 认证
  4. 邮件发送服务AWS SES,Mailgun以及SendCloud(转)
  5. 1588: [HNOI2002]营业额统计 - BZOJ
  6. Memcache,Redis
  7. cf公式专场-续
  8. net core与golang web
  9. 转每天一个linux命令(14):head 命令
  10. python重试(指数退避算法)
  11. 【Java学习笔记之一】java关键字及作用
  12. 将本地jar包打包到本地仓库和上传到私服
  13. sass进阶—变量运算
  14. day 7-14 数据库完整性约束
  15. Hadoop Steaming开发之WordCount
  16. Jmeter学习之-获取登录的oken值(2)
  17. python恶俗古风诗自动生成器
  18. Haskell语言学习笔记(75)Conduit
  19. Redis windows环境安装 以及 redis整合spring
  20. python学习笔记06:操作文件

热门文章

  1. linux下的gedit命令使用方法与技巧
  2. Bugtags:移动时代首选 Bug 管理系统
  3. Gatling的进阶三
  4. Mongo 备份 还原
  5. [Flex] ButtonBar系列——最后一个项目的样式设置
  6. Java中堆和栈的区别(转)
  7. Java是传值还是传引用
  8. Android--创建进度框ProgressDialog
  9. Oracle 版本历史
  10. OC基础(19)