Keeps getting error when I EnableSwagger2 in Spring MVC
I want to include spring fox inside my Spring MVC project. But I always get errors, when I try to enable "EnableSwagger2" annotation inside my SwaggerConfig.java. I am using springfox-swagger 2.2.2 and the version for the spring-webmvc, it is 3.2.2.RELEASE @Configuration @EnableSwagger2 @ComponentScan(basePackages = "com.example.synbio.controller") public class SwaggerConfig { } I have tried many things, but my build still giving me error. I have put the mapping inside servlet-context.xml: <?xml version="1.0" encoding="UTF-8"?> <beans:beans xmlns="http://www.springframework.org/schema/mvc" xml
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.