找不到匹配的编辑器或转换策略
2019-08-22 10:47:15.628 WARN 64840 — [nio-8080-exec-1] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved [org.springframework.web.method.annotation.MethodArgumentConversionNotSupportedException: Failed to convert value of type ‘com.yc.blog.bean.User’ to required type ‘org.apache.catalina.User’; nested exception is java.lang.IllegalStateException:
Cannot convert value of type ‘com.yc.blog.bean.User’ to required type ‘org.apache.catalina.User’:
no matching editors or conversion strategy found]
我的这个错误主要的是导错一个类把org.apache.catalina.User 当做我自己写的com.yc.blog.bean.User类导入了,然后就说不能转换,最主要原因还是自己的粗心所致
这是在修改之前
这是修改之后
之后就没问题了
关于 no matching editors or conversion strategy found错误
最新推荐文章于 2023-04-17 22:17:30 发布