04 2022 档案
摘要:参考博客: https://blog.csdn.net/lingerlan510/article/details/121906813 https://blog.csdn.net/user2025/article/details/106595257 https://blog.csdn.net/Conf
阅读全文
摘要:Jasypt方式 一、导入配置文件 <dependency> <groupId>com.github.ulisesbocchio</groupId> <artifactId>jasypt-spring-boot-starter</artifactId> <version>3.0.4</version
阅读全文
摘要:代码很简单。已经放到码云了,码云地址:https://gitee.com/zhang-zhixi/springboot-upload.git
阅读全文
摘要:AOP实现接口执行时间的计算: SpringBoot项目导入spring-boot-starter-aop依赖 编写切面类 类上加@Aspect注解,表明这是一个切面类 类上加@Component,把切面交给Spring管理(我们要切的Controller/Service都是Spring容器的,切面
阅读全文
摘要:演示代码地址: GitHub:https://github.com/zhangzhixi0305/exception-handling 码云:https://gitee.com/zhang-zhixi/exception-handling.git 参考链接: https://www.yuque.co
阅读全文
摘要:
原文地址:https://mp.weixin.qq.com/s/6zoQ3KXZOfuuYsaI9eVGzQ 要导入的包是:org.springframework 一、Assert:断言 // 要求参数 object 必须为非空(Not Null),否则抛出异常,不予放行 // 参数 message
阅读全文
![Spring中常用工具类](https://img2022.cnblogs.com/blog/2126720/202204/2126720-20220402150318730-706525122.png)