2

swagger-ui does not render when Spring Boot application is running in a docker container, only swagger.json. It works fine when running locally (IntelliJ). I'm not clear on how boot adds static resources to the fatjar. I tries several variations of what is shown here but no luck.

I am using apache cxf with spring boot as shown here

Relevant sections...

//build.gradle
compile('org.apache.cxf:cxf-rt-rs-service-description-swagger:3.1.7')
compile('org.webjars:swagger-ui:2.2.6')
//application.yml
cxf:
  jaxrs:
  component-scan: true
  component-scan-packages: org.apache.cxf.jaxrs.swagger
zerayaqob
  • 426
  • 1
  • 6
  • 12
  • i managed to get swagger-ui working in a docker container, can you post your configuration ? – mh377 Aug 07 '18 at 15:04

0 Answers0