2022-07-28
在 Mybatis-plus3.4.0 之前,使用 paginationInterceptor 来进行拦截
自 3.4.0 版本后,都是使用MybatisPlusInterceptor 内注入PaginationInnerIntercept
2022-06-01
使用 update 语句时,出现 Data truncation: Truncated incorrect DOUBLE value
org.springframework.dao.DataIntegrityViolationExcepti
2022-05-14
Docker 架构
镜像(Image)
Docker 镜像(Image),就相当于是一个 root 文件系统。比如官方镜像 ubuntu:16.04 就包含了完整的一套 Ubuntu16.04 最小系统的 root 文件系统。
容器(C
2022-05-07
可能遇到的问题
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'
2022-05-04
使用@RestControllerAdvice定义 SpringMVC 异常处理器来处理异常
异常处理器必须被扫描加载
@RestControllerAdvice
@Slf4j
public class GlobalExceptionH
2022-05-01
读取单一数据
使用@value配合 SpEL 读取单个数据
如果数据存在多层级,依次书写层级名称即可
users:
name: zhangsan
age: 18
@Value("${user.name}")
2022-05-01
既然有些人不愿意听你讲话,那就不要再讲给他听了吧
2022-04-26
简介REST(Representational State Transfer),表现形式转换
传统风格资源描述形式
http://localhost/user/getById?id=1
http://localhost/user/save
2022-04-16
在 Test 类中使用@AutoWired 注解始终无法获取到 Bean,一直报空指针异常
是需要配置 spring-test 的呀
导入 spring 集成 junit 的坐标
<!--此处需要注意的是,spring5 及以上版
2022-04-14