- 博客(16)
- 收藏
- 关注
原创 SpringBoot多环境部署profile
1.多环境部署开发环境 dev测试环境 test生产环境 prod有些公司在生产和测试之间有个预发布环境2.profile提供环境支持
2022-01-14 15:33:21
143
原创 log4j打印日志
查看依赖的小技巧SpringBoot日志1.移除默认日志2.添加日志框架依赖3.resoure下面创建日志的配置文件,stdout是控制台 file是文件4.在控制层加入变量,引入logger
2022-01-12 11:20:01
606
原创 StingUtil工具类的使用
1.先导入jar包其中字符串的工具类是再commons-lang3里面2.然后使用第一个jar包3.其中有两个判断方法,但是isNotBlank可s另外判断是否为空,也就是包含isNotEmpty,所以使用isNotBlank
2021-12-15 16:14:39
127
原创 Mybatis-Plus 之BaseMapper 方法详解
/*** Mapper 继承该接口后,无需编写 mapper.xml 文件,即可获得CRUD功能* 这个 Mapper 支持 id 泛型*/public interface BaseMapper<T> { /** * 插入一条记录 * @param entity * 实体对象 * @return int */ Integer insert(T entity); /** * 根据 ID 删除 ...
2021-10-18 09:22:40
5604
原创 集合类型转换
IterableUtils.toList(iterable).stream().map(CarModel::new).collect(Collectors.toList());list.toList(iterable).stream().map(CarModel::new).collect(Collectors.toList());
2021-10-15 16:11:48
240
原创 BeanUtils工具类
① package org.springframework.beans; BeanUtils.copyProperties(A,B) --> 是将A中的值赋值给B ② package org.apache.commons.beanutils;(常用) BeanUtils.copyProperties(A,B) --> 是将B中的值赋值给A 补充:除BeanUtils外还有一个名为PropertyUtils的工具类,也提供copyPro...
2021-10-15 16:06:56
462
原创 解决MD5加密
pom文件导入依赖<!-- 类库Hutool --><dependency> <groupId>cn.hutool</groupId> <artifactId>hutool-all</artifactId> <version>5.3.9</version></dependency>
2021-10-13 16:01:40
143
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人