3

您正在尝试使用模型,但没有找到模型。也许您在项目中没有模型,或者您没有检测模型。预计您在类路径上有一个文件 activejdbc_models.properties

Caused by: activejdbc.InitException: you are trying to work with models, but no models are found. Maybe you have no models in project, or you did not instrument the models. It is expected that you have a file activejdbc_models.properties on classpath
at activejdbc.ModelFinder.findModels(ModelFinder.java:46)
at activejdbc.Registry.init(Registry.java:97)
at activejdbc.Model.<clinit>(Model.java:53)
... 2 more

谢谢,

4

1 回答 1

4

这已经得到回答: 不能让activejdbc工作?

基本上,您在编译后缺少一个检测步骤。如果您使用的是 Maven,请参阅以下简单示例:https ://github.com/javalite/simple-example

如果您使用的是 Ant,请参阅:https ://github.com/javalite/ant-example 参考:http: //javalite.io/getting_started

谢谢

于 2011-03-01T20:38:42.663 回答