首先,这个标签是3.0后引入的;

如果3.0还不能解析,则是xml配置文件mvc头没有引入,在*-servlet.xml头信息里加入如下:

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

http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd


另外在spring中返回json时,需要在controller前配置<mvc:annotation-driven/>,

还要引入jackson-all-1.8.8.jar包,或者低版本的2个jackson包

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-24
  • 2021-12-03
  • 2022-02-04
  • 2021-09-09
  • 2021-12-12
猜你喜欢
  • 2022-12-23
  • 2021-11-06
  • 2021-12-10
  • 2021-09-22
  • 2021-06-22
  • 2021-10-30
  • 2022-12-23
相关资源
相似解决方案