• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
倪殤
博客园    首页    新随笔    联系   管理    订阅  订阅

SpringMVC拦截静态资源的问题

web.xml的配置

"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"

"http://java.sun.com/dtd/web-app_2_3.dtd" >

 

Archetype Created Web Application

 

contextConfigLocation

classpath:applicationContext.xml

 

org.springframework.web.context.ContextLoaderListener

 

springDispatcherServlet

org.springframework.web.servlet.DispatcherServlet

 

contextConfigLocation

 

/WEB-INF/dispatcher-servlet.xml/

1

 

springDispatcherServlet

*.do

 

/index.jsp

SpringMVC配置

 

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"

xmlns:mvc="http://www.springframework.org/schema/mvc"

xmlns:p="http://www.springframework.org/schema/p"

xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd

http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd

http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd">

 

 

 

class="org.springframework.web.servlet.view.InternalResourceViewResolver">

 

 

class="org.springframework.web.multipart.commons.CommonsMultipartResolver"

p:defaultEncoding="utf-8">

 

 

 

 

在jsp页面无法插入图片


 
posted @ 2017-04-17 11:11  倪殤  阅读(117)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3