개발/Spring

[Spring] Spring 5, WebFlux Swagger 지원안함

hojak99 2018. 6. 1. 00:03

Spring WebFlux 에 Swagger 를 적용해보려고 했는데 깃허브에 Springfox 프로젝트에 issue 를 보니까 지원을 하지 않는 것 같다. 물론 Spring 5도!



참조 링크 : https://github.com/springfox/springfox/issues/1773/


해당 이슈에 마지막 쯤에 이런 코멘트가 달려있다.


Recap:

  • Sping 5 (spring-data-rest 3) dropped support for Javas older that Java 1.8.
  • Spingfox projects are written and compiled in Java 1.6 (WTF?)
  • Springfox can not support Webflux or spring-data-rest at all without Springfox rewriting the the whole project (or at least most of it) in Java 1.8
  • NoSuchMethodError: getRepositoryInformationFor is caused by this method having Optional<> parameters in Java1.8 and Springfox Java1.6 does not understand or support those.
  • I doubt Springfox will be able to fix this anytime soon. Unlikely that this would be fixed in lifetime of any project that you or I are currently doing using Spring5.


반응형