|
|
@ -91,7 +91,7 @@ public class SwaggerConfig {
|
|
|
|
* 对已经生成好的 OpenApi 进行自定义操作
|
|
|
|
* 对已经生成好的 OpenApi 进行自定义操作
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Bean
|
|
|
|
@Bean
|
|
|
|
public OpenApiCustomizer openApiCustomiser() {
|
|
|
|
public OpenApiCustomizer openApiCustomizer() {
|
|
|
|
String contextPath = serverProperties.getServlet().getContextPath();
|
|
|
|
String contextPath = serverProperties.getServlet().getContextPath();
|
|
|
|
String finalContextPath;
|
|
|
|
String finalContextPath;
|
|
|
|
if (StringUtils.isBlank(contextPath) || "/".equals(contextPath)) {
|
|
|
|
if (StringUtils.isBlank(contextPath) || "/".equals(contextPath)) {
|
|
|
|