大概意思就是 说 不能把代理 转换为 什么service;关键字
主要标志[$Proxy14
Cannot convert value of type 原因就是我在action 中 使用了 userservice 的时候没有用面向接口 ; 直接用的private userservice userserice; 该为private IUserService userservice 后 问题解决;
<li>Cannot convert value of type
[$Proxy14 implementing com.ibeifeng.service.IUserService,com.ibeifeng.service.IService,org.springframework.aop.SpringProxy,org.springframework
aop.framework.Advised]
to required type [com.ibeifeng.service.UserService] for property 'userService': nomatching editors or conversion strategy found</li>
<li>Failed to convert property value of type [$Proxy14 implementing com.ibeifeng.service.IUserService,com.ibeifeng.service.IService,
org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised] to required type [com.ibeifeng.service.UserService] for property 'userService'
;
nested exception is java.lang.IllegalArgumentException: Cannot convert value of type
[$Proxy14 implementingcom.ibeifeng.service.IUserService,com.ibeifeng.service.IService,org.springframework.aop.SpringProxy
,org.springframework.aop.framework.Advised]
to required type [com.ibeifeng.service.UserService] for property'userService': no matching editors or conversion strategy found</li>
解决上面问题后 ; 又 出现了下面的问题; 因为 我在userservice 用了set 方法; 主要关键字
org.apache.struts2.json.JSONWriter can not access a member of class
org.springframework.aop.interceptor.ExposeInvocationInterceptor$1 with modifiers "public" jsonwriter不能 接近用public 修饰的代理;; 也就是get方法;
<li>Class org.apache.struts2.json.JSONWriter can not access a member of class
org.springframework.aop.interceptor.ExposeInvocationInterceptor$1 with modifiers "public"</li>
<li>java.lang.IllegalAccessException: Class org.apache.struts2.json.JSONWriter
can not access a member of class org.springframework.aop.interceptor.ExposeInvocationInterceptor$1 with
modifiers "public"</li>
<li>org.apache.struts2.json.JSONException: java.lang.IllegalAccessException:
Class org.apache.struts2.json.JSONWriter can not access a member of class org.springframework.aop.interceptor
.ExposeInvocationInterceptor$1 with modifiers "public"</li>
ssh 有时候遇到的问题;
最新推荐文章于 2022-10-23 18:03:58 发布