Код: Выделить всё
org.springdoc
springdoc-openapi-starter-webmvc-ui
2.5.0
Код: Выделить всё
springdoc.swagger-ui.path=/swagger-ui.html
springdoc.swagger-ui.config-url=/applicationname/rest/env1/api-docs/swagger-config
springdoc.swagger-ui.disable-default-url=true
springdoc.api-docs.path=/api-docs
но когда я развертываю приложение в env1, я вижу Определение API не предоставлено
Путь к контексту моего приложения
Код: Выделить всё
https://domain/applicationname/rest/env1Код: Выделить всё
https://domain/applicationname/rest/env1/swagger-ui.htmlКод: Выделить всё
https://domain/applicationname/rest/env1/api-docs
Код: Выделить всё
@Bean
@Order(1)
public SecurityFilterChain publicChain(HttpSecurity http){
http.authoriseRequests(req ->req.requestMatchers("/swagger-ui.html",
"/swagger-ui.html/**","/api-docs","/api-docs/**").
permitAll().anyRequest().permitAll);
return http.build();
}
@Bean
@Order(2)
public SecurityFilterChain privateChain(HttpSecurity http){
http.authoriseRequests(req ->req.requestMatchers("/v3/test**").hasRole(ROLE).anyRequest.permitAll());
return http.build();
}
Подробнее здесь: https://stackoverflow.com/questions/798 ... n-provided
Мобильная версия