首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >ActiveJDBC -如何定义模型

ActiveJDBC -如何定义模型
EN

Stack Overflow用户
提问于 2011-02-15 11:31:08
回答 1查看 3.3K关注 0票数 3

您正在尝试使用模型,但找不到任何模型。也许您在项目中没有模型,或者您没有对模型进行检测。您应该在类路径上有一个文件activejdbc_models.properties

代码语言:javascript
复制
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

谢谢,

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2011-03-02 04:38:43

这个问题已经得到了回答:Can't get activejdbc working?

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

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

谢谢

票数 4
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/4999636

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档