wkennedy / swagger4spring-web

Swagger support for Spring MVC
89 stars 46 forks source link

support controller interface implementation? #56

Open jeremyxxdman opened 10 years ago

jeremyxxdman commented 10 years ago

Hi all,

Here is my case ////////////////////controller interface//////////////////// @Controller @RequestMapping(value="testSample") public interface IATest { @RequestMapping(value = "OMGTest", method = RequestMethod.GET) @ResponseStatus(value = HttpStatus.OK) @ResponseBody public Account accounts( Integer ID); } //////////////////concrete class//////////////////////////// public class OMGTest implements IATest { public Account accounts( Integer ID){ return new Account(ID); } } ///////////////////////////////////////////////////////////////////// I always get "UnexpectedException" when I link to {localservice} /api/resourceList

Does swagger4spring-web support the above situation? (i.e document out the class which implements the controller interface.)