简介
本文用示例介绍Spring(SpringBoot)的AOP的执行顺序。
公共代码
Service
package com.example.demo.service;
import com.example.demo.entity.User;
public interface ...
2025-06-19 1077
简介
本文介绍Spring的AnnotatedElementUtils工具类的使用。
AnnotatedElementUtils与AnnotationUtils的区别
AnnotatedElementUtils比AnnotationUtils更强大
特性AnnotatedElem...
2024-02-28 5949
简介
本文介绍Spring的AnnotationUtils工具类的用法。
AnnotatedElementUtils与AnnotationUtils的区别见:这里
用法
注解类
package com.example.annotation;
import org....
2024-02-28 2357
简介
本文介绍Spring的MultiValueMap工具类的使用。
MultiValueMap:一个key对应多个value。
用法
package com.example.demo;
import org.junit.jupiter.api.Test;
import org...
2023-09-27 5081
简介
本文介绍Spring的ClassPathResource工具类的使用。ClassPathResource用于加载资源文件。
用法
Resource res = new ClassPathResource("xxx");
构造函数参数:路径名。可以...
2023-09-27 2340
简介
本文介绍Spring的AOP的工具类:AopUtils。
用法大全
判断代理类型
// 判断是不是 Spring 代理对象
boolean isAopProxy()
// 判断是不是 jdk 动态代理对象
isJdkDynamicPro...
2023-10-18 3752
简介
本文介绍Spring的ReflectUtils的使用。
ReflectUtils工具类的作用:便利地进行反射操作。
Spring还有一个工具类:ReflectionUtils,它们在功能上的最大区别是:ReflectUtils...
2023-09-28 1036
简介
本文介绍Java的PropertyDescriptor的用法。
PropertyDescriptor用于描述属性相关的信息,如对于读写方法的设置和读取,获取属性的类型等操作。通常用于通过反射获取对象方法。
...
2024-02-21 2475
简介
本文介绍Spring的ReflectionUtils的使用。
ReflectionUtils工具类的作用:便利地进行反射操作。
Spring还有一个工具类:ReflectUtils,它们在功能上的最大区别是:ReflectUti...
2023-09-27 2320
简介
整个Spring(SpringBoot)框架的路径解析都是按照Ant的风格来的,比如:Controller的请求路径、文件路径、包的路径。所以,掌握Ant的路径匹配很重要。
Spring中的具体实现: org...
2023-09-27 4748