spring-boot-starter-swagger icon indicating copy to clipboard operation
spring-boot-starter-swagger copied to clipboard

好像同时有spring mvc和Jersey的API时,Jersey的无法被扫描出来

Open zhouhao opened this issue 8 years ago • 1 comments

即使加了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();
    }
}

zhouhao avatar Jan 16 '18 16:01 zhouhao

一样 扫描不到Jersey接口

huyunfan avatar Jun 13 '19 07:06 huyunfan