mirror of
https://github.com/dromara/RuoYi-Vue-Plus.git
synced 2026-05-05 09:24:30 +08:00
update 使用 StringUtils.SLASH 替代硬编码的斜杠
This commit is contained in:
@@ -110,7 +110,7 @@ public class SpringDocConfig {
|
||||
public OpenApiCustomizer openApiCustomizer() {
|
||||
String contextPath = serverProperties.getServlet().getContextPath();
|
||||
String finalContextPath;
|
||||
if (StringUtils.isBlank(contextPath) || "/".equals(contextPath)) {
|
||||
if (StringUtils.isBlank(contextPath) || StringUtils.SLASH.equals(contextPath)) {
|
||||
finalContextPath = "";
|
||||
} else {
|
||||
finalContextPath = contextPath;
|
||||
|
||||
Reference in New Issue
Block a user