异常如下
[ERROR]-[Thread: http-apr-8090-exec-8]-[com.jfinal.core.ActionHandler.handle()]: /cpys/show
com.jfinal.plugin.activerecord.ActiveRecordException: java.lang.IllegalAccessException: Class com.jfinal.plugin.activerecord.ModelBuilder can not access a member of class com.netinnet.manualresource.model.Product with modifiers ""
configPlugin方法如下:
@Override
public void configPlugin(Plugins me) {
String jdbcUrl = JdbcConfigBean.JDBC_URL;
String user = JdbcConfigBean.JDBC_USER;
String password = JdbcConfigBean.JDBC_PASSWORD;
C3p0Plugin c3p0Plugin = new C3p0Plugin(jdbcUrl, user, password);
me.add(c3p0Plugin);
ActiveRecordPlugin arp = new ActiveRecordPlugin(c3p0Plugin);
me.add(arp);
arp.addMapping(Visitor.TABLE_NAME, Visitor.PRIMARY_KEY, Visitor.class);
arp.addMapping(Product.TABLE_NAME, Product.PRIMARY_KEY, Product.class);
EhCachePlugin ecp = new EhCachePlugin();
me.add(ecp);
}
http://www.jfinal.com/feedback/2429