0
回答
Play 怎么使用jar包中的model

一个项目的model包被我打成jar包,然后Build path到另外一个项目中使用,写的时候能够正常的import,但测试的时候,调用一个model的.save()方法报错:Not an entity;查了官方文档:

Comma-separated list of names of additional JPA entity classes to load. This is useful when you have additional entities that are not in themodelspackage, such as model classes in a separate JAR. For example:

org.example.model.Person, org.example.model.Organisation
但在application.conf文件中加入了,也没起作用,求大神解答


举报
zj49079
发帖于3年前 0回/290阅
顶部