java.lang.IllegalStateException: Argument [RedirectAttributes] is of type Model
来源:互联网 发布:淘师湾算法及其描述 编辑:程序博客网 时间:2024/06/07 08:27
java.lang.IllegalStateException: Argument [RedirectAttributes] is of type Model or Map but is not assignable from the actual model. You may need to switch newer MVC infrastructure classes to use this argument.
解决方法:在springmvc文件里加上这个标签:<mvc:annotation-driven />
同时将该文件的头信息改成:
<?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:context="http://www.springframework.org/schema/context"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd">
- java.lang.IllegalStateException: Argument [RedirectAttributes] is of type Model
- nested exception is java.lang.IllegalStateException: Cannot convert value of type [org.springframewo
- java.lang.IllegalStateException: Errors/BindingResult argument declared without preceding model attr
- java.lang.IllegalStateException: Cannot convert value of type
- 关于“java.lang.IllegalArgumentException: argument type mismatch”
- java.lang.IllegalArgumentException: argument type mismatch
- java.lang.IllegalArgumentException: argument type mismatch 错误
- java.lang.IllegalArgumentException: argument type mismatch
- Cause: java.lang.IllegalArgumentException: argument type mismatch
- java.lang.IllegalArgumentException: argument type mismatch
- java.lang.IllegalArgumentException: argument type mismatch
- java.lang.IllegalArgumentException: argument type mismatch
- java.lang.IllegalStateException: Driver for test database type [H2] is not available in the classpat
- java.lang.IllegalStateException: No data type for
- No parameter name specified for argument of type [java.lang.String]
- No parameter name specified for argument of type [java.lang.String],
- No parameter name specified for argument of type [java.lang.Integer]
- java.lang.IllegalStateException: Expected raw type form of org.springframework.web.servlet.handler.A
- 等差数列
- C++ 基于范围的for循环
- iOS开发 - CoreLocation地理定位
- 异常处理的最佳实践(下)
- 谈谈PMO 的定位和职责
- java.lang.IllegalStateException: Argument [RedirectAttributes] is of type Model
- uzgbtymhqo.vbs服务器端测试代码编写
- ABAP增强的历史发展
- Linux内核学习:netlink的内核实现原理
- UnityShader实例07:在shader调用unity内置lightmap和light Probes
- Java读取图片像素和大小
- How to disable Grub's menu from showing up after failed boot
- 判断IP地址的合法性
- 树形结构的处理——组合模式