欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

java.lang.IllegalAccessException

程序员文章站 2022-07-10 17:57:18
...
Servlet.service() for servlet default threw exception
java.lang.IllegalAccessException: Class com.googlecode.jsonplugin.JSONWriter can not access a member of class org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper with modifiers "public"


需要用到get方法,只是在action里面不能包含有接口的get方法,
如 private InterfaceService iService;
public InterfaceService getIService(){
return iService;
} 即:spring注入时,不需写get方法