mirror of
https://github.com/continew-org/continew-starter.git
synced 2025-12-11 06:57:11 +08:00
chore: 优化部分代码格式
This commit is contained in:
@@ -33,6 +33,7 @@ import java.util.function.Function;
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public class ExceptionUtils {
|
||||
|
||||
private static final Logger log = LoggerFactory.getLogger(ExceptionUtils.class);
|
||||
|
||||
private ExceptionUtils() {
|
||||
|
||||
@@ -30,7 +30,7 @@ import java.io.IOException;
|
||||
* 通用配置文件读取工厂
|
||||
* <p>
|
||||
* DefaultPropertySourceFactory 仅支持 properties
|
||||
* 配置文件读取,详见:<ahref="https://docs.spring.io/spring-boot/docs/2.0.6.RELEASE/reference/html/boot-features-external-config.html#boot-features-external-config-yaml-shortcomings">YAMLShortcomings</a>
|
||||
* 配置文件读取,详见:<a href="https://docs.spring.io/spring-boot/docs/2.0.6.RELEASE/reference/html/boot-features-external-config.html#boot-features-external-config-yaml-shortcomings">YAMLShortcomings</a>
|
||||
* </p>
|
||||
*
|
||||
* @author Charles7c
|
||||
|
||||
@@ -51,7 +51,7 @@ public class SpringWebUtils {
|
||||
private SpringWebUtils() {
|
||||
}
|
||||
|
||||
private static final AntPathMatcher matcher = new AntPathMatcher();
|
||||
private static final AntPathMatcher MATCHER = new AntPathMatcher();
|
||||
|
||||
/**
|
||||
* 路径是否匹配
|
||||
@@ -100,7 +100,7 @@ public class SpringWebUtils {
|
||||
* @since 2.4.0
|
||||
*/
|
||||
public static boolean isMatchAnt(String path, String pattern) {
|
||||
return matcher.match(pattern, path);
|
||||
return MATCHER.match(pattern, path);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user