![](https://img-blog.csdnimg.cn/448a663f8405496dad0b762f88521ef9.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
SpringBoot
SpringBoot学习记录
藏蓝色攻城狮
实际上,我们都是一台能够执行代码的机器而已。
展开
-
springboot整合jwt实现token,简明笔记
一篇搞定springboot整合jwt实现token原创 2023-06-21 10:19:24 · 2569 阅读 · 0 评论 -
MyBatisPlus简明使用笔记
直接上手,MyBatisPlus简明使用笔记原创 2023-06-21 08:29:57 · 613 阅读 · 0 评论 -
spring boot使用swagger简明笔记
swagger就是一个在你写接口的时候自动帮你生成接口文档的东西,只要你遵循它的规范并写一些接口的说明注解即可。原创 2023-06-20 17:55:46 · 160 阅读 · 0 评论 -
SpringBoot中接收POST参数的几种方式
今天在做一个vue前后端分离项目的过程中,踩了一个坑,记录一下前端如下:提交后,发现后端怎么也收不到参数,总结如下:常见的接收post参数,有三种。原创 2023-06-20 11:11:01 · 4528 阅读 · 0 评论 -
thymeleaf中 th:href使用笔记
thhref带参数的写法,下面分别是带一个参数和两个参数的写法。如-http//localhost8080/如-http//localhost8080。原创 2022-08-02 11:30:51 · 7535 阅读 · 0 评论 -
解决 spring boot热部署后 404问题
application.properties里添加两个参数spring.devtools.restart.poll-interval=2sspring.devtools.restart.quiet-period=1s第一个参数必须要大于第二个参数原创 2022-04-07 20:27:54 · 469 阅读 · 0 评论 -
MyBatisPlus快速使用笔记(1)配置
1、pom.xml配置依赖 <!--mysql数据库驱动--> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <scope>runtime</scope> </dependency&原创 2022-01-02 21:03:40 · 445 阅读 · 0 评论 -
MyBatisPlus快速使用笔记(2)插入数据Insert
@Autowired private UserMapper userMapper; //userMapper是之前写好的mapper接口@Test //测试 public void insertTest(){ User user = new User(); user.setName("aa"); user.setAge(22); user.setEmail("123@qq.com"); Integer result = userMapper.i..原创 2022-01-02 21:08:38 · 380 阅读 · 0 评论 -
thymeleaf 之循环遍历LIST到select下拉框
<select> <option th:each="dict:${mList}" th:value="${dict.gid}" th:text="${dict.gname}"> </select> mList为后端model传来的LIST变量名th:value为下拉框数值th:text为下拉框显示内容原创 2022-01-02 14:57:44 · 1713 阅读 · 0 评论 -
spring boot 导出excel最简单方法
1、导入依赖 <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi</artifactId> <version>3.14</version> </dependency> <dependency>原创 2021-12-13 16:39:57 · 812 阅读 · 2 评论 -
Thymeleaf 循环,普通数值递增
<div th:each="i:${#numbers.sequence(1,pageCount)}"> <a href="#" th:text="${i}"></a></div>pageCount为后端传来的变量原创 2021-11-30 15:42:35 · 223 阅读 · 0 评论 -
踩坑!Spring Boot 中@RequestBody 接收到的对象属性为null
定义的实体类package com.fd.pojo;import com.fasterxml.jackson.annotation.JsonProperty;public class Alarm { private int id; private int AlarmTime; private int MsgFrom; private String MsgContent; private int MsgType; private int is.原创 2020-09-12 12:34:08 · 9950 阅读 · 2 评论