wkennedy / swagger4spring-web

Swagger support for Spring MVC
89 stars 46 forks source link

Upgrading from 0.3.3 to 0.3.5 induces "Uncaught SwaggerOperation X is missing method" errors #88

Open ryancutter opened 9 years ago

ryancutter commented 9 years ago

Hi, I was hoping to clear up the issue with lambdas in Java 8 which appears to have been resolved post-0.3.3 but I now get a console full of these errors:


"Unable to Load SwaggerUI"

Uncaught SwaggerOperation X is missing method.

Where X is a method with an org.springframework.web.bind.annotation.ExceptionHandler annotation and no swagger annotations. None of the links other than Raw work. Can you advise the best way to resolve this?

Thanks! Ryan

verystrongjoe commented 9 years ago

You have to add the annotation @ApiExclude. Because this crawl every method in class. So You have to declare it to be excluded.