HTTP Status 500 - The absolute uri: http://www.springframework.org/security/tags cannot be resolved

在这里插入图片描述
最近整合jsp页面和springmvc,jsp里面含有一个uri的c标签一直解析不了,试了好多办法都不行,那个大神帮看下
springmvc的配置:

<context:component-scan
base-package=“com.sg.security” />
<mvc:annotation-driven />

<!-- 配置视图解析器 -->
<bean id="viewResolver"
	class="org.springframework.web.servlet.view.InternalResourceViewResolver">
	<!-- JSP文件所在的目录 -->
	<property name="prefix" value="/pages/" />
	<!-- 文件的后缀名 -->
	<property name="suffix" value=".jsp" />
</bean>

<!-- 设置静态资源不过滤 -->
<mvc:resources location="/css/" mapping="/css/**" />
<mvc:resources location="/img/" mapping="/img/**" />
<mvc:resources location="/js/" mapping="/js/**" />
<mvc:resources location="/plugins/" mapping="/plugins/**" />

web.xml的配置:


index.jsp

    <!-- 配置 CharacterEncodingFilter解决中文乱码问题-->
<filter>
    <filter-name>CharacterEncodingFilter</filter-name>
    <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
    
    <!-- 配置编码格式为UTF-8 -->
    <init-param>
        <param-name>encoding</param-name>
        <param-value>UTF-8</param-value>
    </init-param>
</filter>

<filter-mapping>
    <filter-name>CharacterEncodingFilter</filter-name>
    <url-pattern>/*</url-pattern>
</filter-mapping>
   
   <!-- 加载spring的配置文件 -->
   <context-param>
          <param-name>contextConfigLocation</param-name>
          <param-value>classpath*:spring/applicationContext-*.xml</param-value>
   </context-param>
   <!-- 监听器 -->
   <listener>
          <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
   </listener>
   
   <!-- 过滤器 -->
   <filter>
          <filter-name>characterEncodingFilter</filter-name>
          <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
          <init-param>
                 <param-name>encoding</param-name>
                 <param-value>UTF-8</param-value>
          </init-param>
   </filter>
   <filter-mapping>
          <filter-name>characterEncodingFilter</filter-name>
          <url-pattern>/*</url-pattern>
   </filter-mapping>
   
   <!-- servlet中央控制器 -->
   <servlet>
          <servlet-name>dispatcherServlet</servlet-name>
          <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
          <init-param>
                 <param-name>contextConfigLocation</param-name>
                 <param-value>classpath:spring/spring-mvc.xml</param-value>
          </init-param>
   </servlet>
   <servlet-mapping>
          <servlet-name>dispatcherServlet</servlet-name>
          <url-pattern>/</url-pattern>
   </servlet-mapping>

大神帮忙看下

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值