You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi everyone and thanks in advance for your support, I'm trying to build a Micronaut library in order to access database and to avoid repeated code in various projects.
I'm able to Inject @Singleton annotatated classes from the external Micronaut library to a given project but using @Import annotation and micronaut-inject-java annotation processor. I also tryed to use micronaut-data-processor as annotation processor but nothing changes: the @Repository annotated class cannot be injected.
I'm able to inject @Repository annotated class into Application but not into a @MicronautTest class. What am I missing?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi everyone and thanks in advance for your support, I'm trying to build a Micronaut library in order to access database and to avoid repeated code in various projects.
I'm able to Inject
@Singleton
annotatated classes from the external Micronaut library to a given project but using@Import
annotation andmicronaut-inject-java
annotation processor. I also tryed to usemicronaut-data-processor
as annotation processor but nothing changes: the@Repository
annotated class cannot be injected.I'm able to inject
@Repository
annotated class into Application but not into a@MicronautTest
class. What am I missing?Beta Was this translation helpful? Give feedback.
All reactions