2017-11-13 12:07

废了,各种找,就是不行,出一个完整点的手册能怎么样

2017-11-13 11:30

renderJson(UserBean.dao.findById());

2017-11-13 11:29

public class UserBean extends Model{

public static final UserBean dao = new UserBean().dao();

}

2017-11-13 11:29

DruidPlugin druidPlugin = new DruidPlugin(
"jdbc:mysql://localhost:3306/erp?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull",
"root",
"1234");
plugins.add(druidPlugin);
ActiveRecordPlugin activeRecordPlugin = new ActiveRecordPlugin(druidPlugin);
activeRecordPlugin.addMapping("user_info","uid",UserBean.class);

2017-11-10 12:03

找到问题了,与jfinal使用手册的配置描述不一致

com.jfinal
jfinal
3.2


com.jfinal
jetty-server
8.1.8

这段添加到pom里
Controller中需声明@ActionKey(”/xxxxx”)

2017-11-10 11:42

Connected to the target VM, address: '127.0.0.1:64058', transport: 'socket'
Disconnected from the target VM, address: '127.0.0.1:64058', transport: 'socket'
Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/jetty/server/SessionManager