background picture of the home page

欢迎光临QUQI的个人博客

梦想是成为神奇宝贝大师

你好啊,陌生人QWQ (左下角播放音乐) (右下角切换主题)

关于springboot集成邮件系统

授权码 首先我们需要获取授权码,用于后续配置,登录邮箱: https://mail.163.com/ 点击顶端设置,之后选择 POP3/SMTP/IMAP 选项 POP3/SMTP 服务已开启 – 开启该服务,开启是需要验证手机号发送验证码。 验证完成会返回授权码,该授权码只显示一次,记得保存,否则

thumbnail of the cover of the post

关于sa-token的基础使用

基础使用 @RestController @RequestMapping("/acc/") public class LoginAuthController { // 会话登录接口 ---- http://localhost:8081/acc/doLogin?name=zhang&pwd=1

thumbnail of the cover of the post

关于springdoc的基础使用

简单集成 在springboot中使用springdoc起步非常容易,只需要引入其starter即可 <dependency> <groupId>org.springdoc</groupId> <artifactId>springdoc-openapi-ui</artifactId>

thumbnail of the cover of the post

关于fastjson2.0基础使用

配置依赖 <dependency> <groupId>com.alibaba.fastjson2</groupId> <artifactId>fastjson2</artifactId> <version>2.0.55</version> </dependency> 新特性

thumbnail of the cover of the post

关于fastjson与jackson

fastjson默认不包含空值,即当一个对象序列化为json时,其中的空值在序列化后会失去字段名 当要将拥有泛型的类反序列化时new TypeReference 不需要使用强转 添加这个序列化与反序列化都绑定了

thumbnail of the cover of the post

springboot 静态资源配置

static-path-pattern 在 Spring Boot 中,spring.resources.static-path-pattern 配置项用于设置静态资源的 URL 路径模式。当访问一个静态资源时,Spring Boot 会根据这个配置来匹配请求的路径。 例如,Spring Boot

thumbnail of the cover of the post

关于springboot基础配置

# 开发环境配置 server: # 服务器的HTTP端口,默认为8080 port: 8080 servlet: # 应用的访问路径 context-path: / # undertow 配置 undertow: # HTTP post内容的最大大小。当

thumbnail of the cover of the post

Maven多环境配置

不考虑配置中心时,将多环境的配置就放在项目的resource目录下 配置 <profiles> <profile> <id>local&l

thumbnail of the cover of the post