I just got the swagger to create a valid swagger.json. I configured swagger using the Application-config method. However, as soon as I override getClasses-Method to add swagger variables, my JaX-RS Path-annotated classes stop working. The method is as follows
@Override
public Set<Class<?>> getClasses() {
Set<Class<?>> resources = new HashSet<>();
resources.add(io.swagger.jaxrs.listing.ApiListingResource.class);
resources.add(io.swagger.jaxrs.listing.SwaggerSerializers.class);
return resources;
}
and calling super.getClasses () returns am empty set. In my project, I have too many resources that I would not want to add manually.
Is there any way that doesn't interfere with my previous configuration?
Thanks!
Henry source
share