Replies: 1 comment 1 reply
-
I am in a similar situation. I want to use micronaut-data part as a library in some code that could work either as a cli app or as a lambda/k8s cron thingie. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I created a jpa project called A, I expose my jpa code via services which are singleton.
I need project B to use project A as library, but injecting Project A services to Project B, causing nullpointer exception. I have no idea what I am doing wrong. Both projects A and B are micronaut.
annotationProcessor("io.micronaut.data:micronaut-data-processor")
annotationProcessor "io.micronaut:micronaut-inject-java"
annotationProcessor("io.micronaut.data:micronaut-data-processor")
implementation("io.micronaut:micronaut-validation")
implementation("io.micronaut.data:micronaut-data-hibernate-jpa")
compile "io.micronaut:micronaut-inject"
compile "io.micronaut:micronaut-runtime"
compile "io.micronaut:micronaut-inject-java"
Beta Was this translation helpful? Give feedback.
All reactions