摘要: 新建一个 HttpServletRequestWrapper 实现类,在Filter 中使用该类包装原request import cn.hutool.core.collection.CollUtil; import cn.hutool.core.io.IoUtil; import cn.hutoo 阅读全文
posted @ 2024-12-06 17:00 浪天涯&* 阅读(59) 评论(0) 推荐(0) 编辑
摘要: import cn.hutool.core.net.URLEncodeUtil; import cn.hutool.core.util.RandomUtil; import cn.hutool.core.util.StrUtil; import cn.hutool.crypto.SecureUtil 阅读全文
posted @ 2024-12-06 16:48 浪天涯&* 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 新建一个类,实现 WebMvcConfigurer 接口,重写 extendMessageConverters 方法,启动类上添加 @EnableAutoConfiguration 注解 import com.fasterxml.jackson.databind.DeserializationFea 阅读全文
posted @ 2024-12-06 16:36 浪天涯&* 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 注册跨域过滤器 CorsFilter @Bean public CorsFilter corsFilter() { CorsConfiguration config = new CorsConfiguration(); config.addAllowedHeader("*"); config.add 阅读全文
posted @ 2024-11-19 09:07 浪天涯&* 阅读(5) 评论(0) 推荐(0) 编辑
摘要: import cn.hutool.core.collection.ListUtil; import cn.hutool.core.convert.Convert; import cn.hutool.core.io.FileUtil; import cn.hutool.core.text.CharSe 阅读全文
posted @ 2024-11-18 19:11 浪天涯&* 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 日志加载: org.springframework.boot.logging.AbstractLoggingSystem#initializeWithConventions private void initializeWithConventions(LoggingInitializationCon 阅读全文
posted @ 2024-07-15 11:58 浪天涯&* 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 打印SQL日志到控制台 mybatis-plus: configuration: # 这个配置会将执行的sql打印到控制台,在开发或测试的时候可以用 log-impl: org.apache.ibatis.logging.stdout.StdOutImpl 打印SQL日志到文件 logging: l 阅读全文
posted @ 2024-07-15 10:03 浪天涯&* 阅读(530) 评论(0) 推荐(0) 编辑
摘要: 链接:https://pan.baidu.com/s/1Jbos9YwIgt6oETmBA5lezQ 提取码:fwgj 检查gcc环境 若无gcc环境 执行以下命令: tar -xvf gcc.tar cd gcc rpm -Uvh *.rpm --nodeps –force m4包安装 tar - 阅读全文
posted @ 2024-07-08 14:55 浪天涯&* 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 根据版本过滤实例: import cn.hutool.core.collection.CollUtil; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.springf 阅读全文
posted @ 2024-06-21 15:15 浪天涯&* 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 生成证书:keytool -genkeypair -keystore test.jks -alias test -keyalg RSA -keysize 2048 -validity 3650应用配置:server: port: 18081 #https http-port: 8081 #http 阅读全文
posted @ 2024-06-21 14:51 浪天涯&* 阅读(27) 评论(0) 推荐(0) 编辑