随笔分类 - SpringBoot
摘要:添加依赖 <!-- MyBatisPlus 的依赖 --> <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId> <version>3.4.2</version>
阅读全文
摘要:添加依赖 <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.9.2</version> </dependency> <dependency> <gro
阅读全文
摘要:# 更改文件上传大小 spring.servlet.multipart.max-file-size=10MB spring.servlet.multipart.max-request-size=10MB # 指定静态资源位置 可以url访问 spring.web.resources.static-l
阅读全文
摘要:在开发中修改代码 避免反复重启 编译 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> </dependency> 使用idea 为 2023.
阅读全文
摘要:package com.example.demo.controller; import com.alibaba.fastjson2.JSONObject; import org.springframework.web.bind.annotation.*; @RestController @Reque
阅读全文