Quarkus multiproject CDI (Kotlin) (solved) #25464
Unanswered
Ragin-LundF
asked this question in
Q&A
Replies: 1 comment 2 replies
-
/cc @evanchooly, @manovotn, @mkouba |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I tried to create a template for further projects with Quarkus instead of Spring Boot.
We use a swagger-first approach and a separation of different layers with multiple projects.
The current state of the project skeleton can be found at https://github.com/Ragin-LundF/quarkus-multiproject-default
My idea was to create the API interfaces together with the DTOs and add a manual implementation of the REST controllers. Those REST controllers should then use the domain services to execute the logic behind the API endpoint.
Both classes (REST controller and domain service) have the
@ApplicationScoped
annotation and the controller injects the domain service via constructor:But when I try to assemble the application I get this exception:
I also tried to use
@Inject
with alateinit
declaration, but with the same result.Is there any tipp how to solve this?
Thanks already for your help ;).
Beta Was this translation helpful? Give feedback.
All reactions