diff --git a/pom.xml b/pom.xml index 0e1f30ba8e407ee684e241cd28407bb9916c8163..d89b0cf621ee3ad60b596a4e241b90ff84cecf45 100644 --- a/pom.xml +++ b/pom.xml @@ -84,11 +84,6 @@ <artifactId>postgresql</artifactId> <version>9.1-901-1.jdbc4</version> </dependency> - <dependency> - <groupId>io.swagger</groupId> - <artifactId>swagger-jersey-jaxrs</artifactId> - <version>1.5.4</version> - </dependency> <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> diff --git a/src/main/java/org/hbp/mip/MIPApplication.java b/src/main/java/org/hbp/mip/MIPApplication.java index 28751d2e2da326c6857894b65685f47d8914c5ca..49d12c4e6175cf4a63d5d0a64df0c4f14e1d3adf 100644 --- a/src/main/java/org/hbp/mip/MIPApplication.java +++ b/src/main/java/org/hbp/mip/MIPApplication.java @@ -56,6 +56,7 @@ import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.RestController; import org.springframework.web.filter.OncePerRequestFilter; import org.springframework.web.util.WebUtils; +import springfox.documentation.swagger2.annotations.EnableSwagger2; import javax.servlet.Filter; import javax.servlet.FilterChain; @@ -73,6 +74,7 @@ import java.security.Principal; @EnableOAuth2Client @Api(value = "/", description = "MIP API") @javax.annotation.Generated(value = "class io.swagger.codegen.languages.SpringMVCServerCodegen", date = "2016-01-06T09:32:22.266Z") +@EnableSwagger2 // available at <BASE URL>/swagger-ui.html public class MIPApplication extends WebSecurityConfigurerAdapter { @Autowired