Spring中常用的工具类

该博客主要介绍了Spring的常用工具类,涵盖类相关、资源相关、Properties、Bean、Annotation、SpringFactories、AutoConfigurationPackages、String和AOP等方面,详细列举了各方面涉及的类及部分方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >


对Spring中一些常见的工具类进行整理备用。

1. 类相关

org.springframework.util.ClassUtils
org.springframework.util.ClassUtils#getDefaultClassLoader

java.lang.ClassLoader#getResources
java.lang.ClassLoader#getSystemResources

2. 资源相关

org.springframework.core.io.FileSystemResourceLoader
org.springframework.core.io.ClassRelativeResourceLoader
org.springframework.core.io.DefaultResourceLoader
org.springframework.web.context.support.ServletContextResourceLoader

3. Properties

org.springframework.core.io.support.PropertiesLoaderUtils
org.springframework.core.io.support.PropertiesLoaderUtils#loadProperties(org.springframework.core.io.Resource)

4. Bean

org.springframework.beans.BeanUtils

5. Annotation

org.springframework.core.annotation.AnnotationAwareOrderComparator

org.springframework.core.annotation.AnnotationUtils
org.springframework.core.annotation.AnnotationUtils#postProcessAnnotationAttributes(java.lang.Object, org.springframework.core.annotation.AnnotationAttributes, boolean, boolean)

org.springframework.context.annotation.AnnotationConfigUtils

org.springframework.core.annotation.AnnotatedElementUtils
org.springframework.core.annotation.AnnotatedElementUtils#getMergedAnnotationAttributes(java.lang.reflect.AnnotatedElement, java.lang.String, boolean, boolean)

6. SpringFactories

org.springframework.core.io.support.SpringFactoriesLoader

7. AutoConfigurationPackages

org.springframework.boot.autoconfigure.AutoConfigurationPackages

8. String

org.springframework.util.StringUtils#commaDelimitedListToStringArray

9. AOP

org.springframework.aop.support.AopUtils
org.springframework.aop.framework.autoproxy.AutoProxyUtils

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值