02 2022 档案
摘要:启动容器时设置 docker run --restart=always 启动完成也可以修改 docker update --restart=always <容器ID> 想取消容器自启 docker update --restart=no <容器ID> 批量删除容器 docker rm -f $(do
阅读全文
摘要:1.创建一个SpringBoot项目 2.导入相关依赖 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocatio
阅读全文
摘要:JDK动态代理(必须要有接口,代理类和被代理类实现相同的接口) public class UserServiceJDKProxy { public static UserService createUserServiceJDKProxy(final UserService userService)
阅读全文
摘要:以前写的代码 mapper层 public interface PersonMapper { void selectPersonList(); } public class PersonMapperImpl implements PersonMapper { @Override public voi
阅读全文
摘要:导入maven坐标 <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.2.2.RELEASE</version> <r
阅读全文
摘要:1.导入相关依赖 <!-- redis 依赖 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependen
阅读全文
摘要:<insert id="saveOne" parameterType="com.buwei.entity.User" > INSERT into user(name, password) value(#{name},#{password}) <selectKey keyProperty="id" o
阅读全文
摘要:1.基本操作 // 修改订单的状态为已发货和已支付 Order order = new Order(); order.setSend(1); // 已发货 order.setPay(1); // 已支付 userMapper.updateById(order); 2.使用条件构造器 // 把名字为l
阅读全文
摘要:Springboot整合MybatisPlus 1.创建一个SpringBoot项目 2.导入相关依赖 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xs
阅读全文
摘要:写项目时前端用了vue+模板引擎用了thymeleaf,然后有一个输入框取值问题让我很纠结,问题如下: <input class="count-num" type="text" th:value="${entry.value.count}" @change="updateCartItemCount(
阅读全文
摘要:Constant 描述 默认值 kaptcha.border 图片边框,合法值:yes , no yes kaptcha.border.color 边框颜色,合法值: r,g,b (and optional alpha) 或者 white,black,blue. black kaptcha.bord
阅读全文
摘要:searchObj: { subjectId: ''// 解决查询表单无法选中二级类别,必须要现在模型中给一个空的初始值 },
阅读全文
摘要:The field file exceeds its maximum permitted size of 1048576 bytes spring: # 设置文件上传文件大小 servlet: multipart: max-file-size: 3MB max-request-size: 10MB
阅读全文