zoukankan      html  css  js  c++  java
  • 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页面无法插入图片


     
  • 相关阅读:
    [BZOJ4480] JSOI2013 快乐的jyy
    [BZOJ4755] JSOI2016 扭动的回文串
    [BZOJ4754] JSOI2016 独特的树叶
    [BZOJ5179] JSOI2011 任务调度
    [BZOJ4320] SHOI2006 Homework
    [AT2300] Snuke Line
    [洛谷P3974] TJOI2015 组合数学
    [CF331E] Biologist
    [洛谷P4249] WC2007 剪刀石头布
    【BZOJ4548】小奇的糖果
  • 原文地址:https://www.cnblogs.com/xsns/p/6721933.html
Copyright © 2011-2022 走看看