HTTP Status 500 - No converter found for return value of type: class java.util.ArrayList
程序员文章站
2024-01-14 11:53:10
...
The server encountered an internal error that prevented it from fulfilling this request.
解决办法:就是在springmvc-servlet.xml配置中,配置mvc注解驱动,会自动注册消息转换器,通过消息转换器把Controller的返回值转换成json。
在springmvc-servlet.xml中添加
<mvc:annotation-driven/>
这样就解决了
推荐阅读
-
【Spring】No converter found for return value of type: class java.util.ArrayList
-
关于No converter found for return value of type: class java.util.ArrayList
-
HTTP Status 500 - No converter found for return value of type: class java.util.ArrayList
-
SpringMVC 报错HTTP Status 500 - No converter found for return value of type解决方案
-
SpringMVC 访问Controller 报错:e No converter found for return value of type: class java.util.ArrayLis
-
SpringMVC 报错HTTP Status 500 - No converter found for return value of type解决方案