spring-boot-starter-swagger
spring-boot-starter-swagger copied to clipboard
好像同时有spring mvc和Jersey的API时,Jersey的无法被扫描出来
即使加了swagger的注解貌似也没管用。 针对这种情况,请问有什么变通方法吗? 多谢
@Component
@Path("/")
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
@Api(value = "Home Resource", produces = MediaType.APPLICATION_JSON, consumes = MediaType.APPLICATION_JSON)
public class HomeResource {
@GET
@ApiOperation(
value = "Hello World",
notes = "Hello World is the king",
response = String.class)
public Response index(){
return Response.ok("Hello World").build();
}
}
一样 扫描不到Jersey接口