File tree Expand file tree Collapse file tree 4 files changed +8
-9
lines changed
java/com/api/advanced_mobile/global Expand file tree Collapse file tree 4 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ dependencies {
3737 implementation ' org.springframework.boot:spring-boot-starter-validation'
3838
3939 // swagger
40- implementation ' org.springdoc:springdoc-openapi-starter-webmvc-ui:2.5 .0'
40+ implementation ' org.springdoc:springdoc-openapi-starter-webmvc-ui:2.8 .0'
4141
4242}
4343
Original file line number Diff line number Diff line change 1313@ Configuration
1414public class SwaggerConfig {
1515
16- @ Value ("${server.servlet.context-path:/}" )
17- private String contextPath ;
18-
1916 @ Bean
2017 public OpenAPI openAPI () {
2118 Info info = new Info ()
Original file line number Diff line number Diff line change @@ -21,11 +21,12 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
2121 .cors (cors -> {})
2222 .authorizeHttpRequests (auth -> auth
2323 .requestMatchers (
24- "/api/signup" ,
25- "/api/login" ,
26- "/api/v3/api-docs/**" ,
27- "/api/swagger-ui/**" ,
28- "/api/swagger-ui.html"
24+ "/signup" ,
25+ "/login" ,
26+
27+ "/v3/api-docs/**" ,
28+ "/swagger-ui/**" ,
29+ "/swagger-ui.html"
2930 ).permitAll ()
3031 .anyRequest ().authenticated ()
3132 )
Original file line number Diff line number Diff line change @@ -19,3 +19,4 @@ springdoc.api-docs.path=/v3/api-docs
1919springdoc.swagger-ui.path =/swagger-ui.html
2020springdoc.swagger-ui.operationsSorter =method
2121springdoc.swagger-ui.disable-swagger-default-url =true
22+ springdoc.api-docs.enabled =true
You can’t perform that action at this time.
0 commit comments