spring-projects-experimental/spring-fu

Activate Autoconfiguration for certain external dependencies

BeneStem opened this issue · 1 comments

Hey there spring-fu Team,

first of all thank you very much for this great project.

I am using it very successfully in an exploration on how to make DDD projects better with functional design.

But now I started to integrate more infrastructure like actuator, metrics, and such.

Actuator support is not here yet, I found the related issue.

But how about external dependencies like springdocs?

I am trying to activate the swagger-ui but to my knowledge there is no way of activating a lot of @Beans from an external dependency automatically.

Can you elaborate on that? Am I missing sth?

You will find a related issue here springdoc/springdoc-openapi#891 (comment).

Thank you very much!

Hi, for now there is no way to do it automatically so you will have to register each bean potentially using the autoconfig methods annotated with @Bean like we do in https://github.com/spring-projects-experimental/spring-fu/tree/main/autoconfigure-adapter/src/main/java/org/springframework/boot/autoconfigure.