java

Add Servlet Context and Swagger on Spring Boot

gimslab.com 2021. 8. 1. 00:41

1. add dependencies

2. determine prefix ("/apigw" in this case) for new context and add setting in SpringBootApplication or other configuration

3. write ApiGwWebMvcConfig.java for new context

4. write Swagger2Config.java for swagger setting

 

details for each step ==> http://wiki.gimslab.com/moniwiki/wiki.php/SwaggerSettingOnSpringBootWithNewServletContext