ActiveJDBC - 如何定义模型

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

thanks,

1个回答

4

如果我正在使用Gradle :D - Necronet
1
如果我没有错过仪器步骤,但它仍然找不到模型怎么办? - Suzan Cioc
@SuzanCioc,你有具体的错误或异常吗? - ipolevoy

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接