jFinal中报对应模型不存在的错误(The Table mapping of model: demo.User not exists)
贴出错误:
java.lang.RuntimeException: The Table mapping of model: demo.User not exists. Please add mapping to ActiveRecordPlugin: activeRecordPlugin.addMapping(tableName, YourModel.class).
at com.jfinal.plugin.activerecord.TableMapping.getTable(TableMapping.java:45)
at com.jfinal.core.ModelInjector.injectActiveRecordModel(ModelInjector.java:83)
at com.jfinal.core.ModelInjector.inject(ModelInjector.java:50)
at com.jfinal.core.ModelInjector.inject(ModelInjector.java:37)
at com.jfinal.core.Controller.getModel(Controller.java:625)
at demo.UserController.add(UserController.java:35)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at