chore: 优化代码格式

This commit is contained in:
2024-09-11 22:24:46 +08:00
parent 1fc80cda9e
commit 46773df9dd
40 changed files with 99 additions and 75 deletions

View File

@@ -32,5 +32,4 @@ import java.lang.annotation.*;
@Documented
@Inherited
@Import({GlobalResponseAutoConfiguration.class})
public @interface EnableGlobalResponse {
}
public @interface EnableGlobalResponse {}

View File

@@ -27,5 +27,4 @@ import top.continew.starter.core.constant.PropertiesConstants;
* @since 2.5.0
*/
@ConfigurationProperties(PropertiesConstants.WEB_RESPONSE)
public class GlobalResponseProperties extends GracefulResponseProperties {
}
public class GlobalResponseProperties extends GracefulResponseProperties {}

View File

@@ -23,9 +23,9 @@ package top.continew.starter.web.autoconfigure.trace;
* 重写 TLog 配置以适配 Spring Boot 3.x
* </p>
*
* @see com.yomahub.tlog.springboot.property.TLogProperty
* @author Bryan.Zhang
* @author Jasmine
* @see com.yomahub.tlog.springboot.property.TLogProperty
* @since 1.3.0
*/
public class TLogProperties {

View File

@@ -31,9 +31,9 @@ import java.io.IOException;
* 重写 TLog 配置以适配 Spring Boot 3.x
* </p>
*
* @see com.yomahub.tlog.web.filter.TLogServletFilter
* @author Bryan.Zhang
* @author Jasmine
* @see com.yomahub.tlog.web.filter.TLogServletFilter
* @since 1.3.0
*/
public class TLogServletFilter implements Filter {

View File

@@ -28,9 +28,9 @@ import jakarta.servlet.http.HttpServletRequest;
* 重写 TLog 配置以适配 Spring Boot 3.x
* </p>
*
* @see com.yomahub.tlog.web.common.TLogWebCommon
* @author Bryan.Zhang
* @author Jasmine
* @see com.yomahub.tlog.web.common.TLogWebCommon
* @since 1.3.0
*/
public class TLogWebCommon extends TLogRPCHandler {

View File

@@ -19,7 +19,9 @@ package top.continew.starter.web.autoconfigure.xss;
import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.io.IoUtil;
import cn.hutool.core.text.CharSequenceUtil;
import cn.hutool.core.util.*;
import cn.hutool.core.util.ArrayUtil;
import cn.hutool.core.util.EscapeUtil;
import cn.hutool.core.util.ReUtil;
import cn.hutool.http.HtmlUtil;
import cn.hutool.http.Method;
import jakarta.servlet.ReadListener;

View File

@@ -29,7 +29,10 @@ import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType;
import org.springframework.web.multipart.MultipartFile;
import java.io.*;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.nio.charset.StandardCharsets;
import java.time.LocalDateTime;

View File

@@ -23,7 +23,8 @@ import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import top.continew.starter.core.constant.StringConstants;
import java.util.*;
import java.util.Collection;
import java.util.Map;
/**
* Servlet 工具类