Replies: 2 comments 26 replies
-
Check if you have the annotation processor added for the second method. |
Beta Was this translation helpful? Give feedback.
-
I have also the same error, when i running on Intelij it ok but when i buid to jar file and build: java -jar ajt.jar it throw an error 'Entities not found for JPA configuration: 'default' within packages', does something i miss? i using Micronaut 3.8.9 + Groovy + Maven and strictly follow this document: https://guides.micronaut.io/latest/micronaut-jpa-hibernate-maven-java.html. Here is my pom.xml: _
_ |
Beta Was this translation helpful? Give feedback.
-
JPA fail to scan my second module where are locate my entities
when I run the app, i got some error like
Entities not found for JPA configuration: 'default' within packages [com.mydomaine.entity]. Check that you have correctly specified a package containing JPA entities within the "jpa.default.entity-scan.packages" property in your application configuration and that those entities are either compiled with Micronaut or a build time index produced with @Introspected(packages="foo.bar", includedAnnotations=Entity.class) declared on your Application class
In my
application.yml
jpa.default.entity-scan.packages: 'com.mydomaine.entity
Beta Was this translation helpful? Give feedback.
All reactions