I need in my spring boot application FF4j
. I try
<dependency>
<groupId>org.ff4j</groupId>
<artifactId>ff4j-spring-boot-starter</artifactId>
<version>1.8</version>
</dependency>
and in this case my application is broken because of swagger.
can I exclude org.ff4j.spring.boot.web.api.config.SwaggerConfig
from my configuration?
I tried to manage it but cant reach final solution because of new different issues.
In case you configure
swagger
in your application in usual case it will be failed because of different reasons. Possible next ones:api
;swagger conflict because two different
Docket
beans in same spring context;Firstly I tried to exclude
ff4j-spring
auto configuration configuring steps in similar way but excludingswagger
for example. Application can't startff4j
without their swagger. That's confused a lot.Looking different solutions I tried follow some recommendations like but I'm getting different issue with missed class for my application. Missed class is in
thymeleaf5
. I can't usethymeleaf5
because of it uses same name interface but different arguments. Additional workarounds make my application failed because of hibernate.Swagger solution is:
in your configuration inject
swagger
Docket
fromff4j
:and rewrite
api
with your configuration in@PostConstruct
block. This solution is not elegant, but provides fix for swagger configs.P.S.
After swagger issue I've got more unresolved elements (but that's will be a different questions).
P.S.2.
FF4j
library provides great UI and ideas and this is general reason why I do not avoid of its headache.