随笔分类 -  SpringBoot

摘要:添加依赖 <!-- MyBatisPlus 的依赖 --> <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId> <version>3.4.2</version> 阅读全文
posted @ 2024-02-19 16:50 钟鼎山林 阅读(25) 评论(0) 推荐(0) 编辑
摘要:添加依赖 <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.9.2</version> </dependency> <dependency> <gro 阅读全文
posted @ 2024-02-19 16:04 钟鼎山林 阅读(7) 评论(0) 推荐(0) 编辑
摘要:# 更改文件上传大小 spring.servlet.multipart.max-file-size=10MB spring.servlet.multipart.max-request-size=10MB # 指定静态资源位置 可以url访问 spring.web.resources.static-l 阅读全文
posted @ 2024-02-05 10:24 钟鼎山林 阅读(48) 评论(0) 推荐(0) 编辑
摘要:在开发中修改代码 避免反复重启 编译 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> </dependency> 使用idea 为 2023. 阅读全文
posted @ 2024-02-04 13:49 钟鼎山林 阅读(19) 评论(0) 推荐(0) 编辑
摘要:package com.example.demo.controller; import com.alibaba.fastjson2.JSONObject; import org.springframework.web.bind.annotation.*; @RestController @Reque 阅读全文
posted @ 2024-02-04 11:19 钟鼎山林 阅读(6) 评论(0) 推荐(0) 编辑