我正在使用带有spring boot的apache cxf,如here
所示相关部分......
//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