RESTEasy Swagger api文档
在我的应用程序中,使用Reast-Easy创建restful服务。 我试图使用io记录restful服务。springfox:springfox-swagger 2:2.9.2和io。springfox:springfox-swagger ui:2.9.2 这是正确的方法吗 当我尝试的时候,我得到了一个招摇过市的UI页面,但是得到了“规范中没有定义任何操作!” 从日志中,我得到以下异常RESTEasy Swagger api文档,rest,swagger,document,resteasy,Rest,Swagger,Document,Resteasy,在我的应用程序中,使用Reast-Easy创建restful服务。 我试图使用io记录restful服务。springfox:springfox-swagger 2:2.9.2和io。springfox:springfox-swagger ui:2.9.2 这是正确的方法吗 当我尝试的时候,我得到了一个招摇过市的UI页面,但是得到了“规范中没有定义任何操作!” 从日志中,我得到以下异常 javax.ws.rs.NotFoundException: RESTEASY003210: Could no
javax.ws.rs.NotFoundException: RESTEASY003210: Could not find resource for full path: http://localhost:8080/test/
at org.jboss.resteasy.core.registry.ClassNode.match(ClassNode.java:61)
at org.jboss.resteasy.core.registry.RootClassNode.match(RootClassNode.java:47)
招摇过市配置:
@Configuration
@EnableSwagger2
public class SwaggerConfig extends WebMvcConfigurationSupport {
@Bean
public Docket apiMonitoramento() {
return new Docket(DocumentationType.SWAGGER_2).select().apis(RequestHandlerSelectors.any())
.paths(PathSelectors.any()).build().apiInfo(apiInfo());
}
private ApiInfo apiInfo() {
return new ApiInfoBuilder().title("REST API").description("REST API").build();
}
@Override
protected void addResourceHandlers(ResourceHandlerRegistry registry) {
registry.addResourceHandler("swagger-ui.html").addResourceLocations("classpath:/META-INF/resources/");
registry.addResourceHandler("/webjars/**").addResourceLocations("classpath:/META-INF/resources/webjars/");
}
}
配置中是否存在任何问题?您能帮我一下吗?Springfox swagger不支持中所述的RestEasy绑定
其主要目的是扫描和构建SpringWebMVC控制器的模型。是否有任何实用程序可用于RestEasy API以用于swagger文档?