@Component public class SpringPlugs extends Object implements org.springframework.context.ResourceLoaderAware, org.springframework.context.ApplicationContextAware
| 构造器和说明 |
|---|
SpringPlugs() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected String |
resolveBasePackage(String basePackage) |
Set<Class<?>> |
scannerPackages(String[] basePackages)
根据包路径获取包及子包下的所有类
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader) |
public Set<Class<?>> scannerPackages(String[] basePackages)
basePackages - basePackagepublic void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
setResourceLoader 在接口中 org.springframework.context.ResourceLoaderAwarepublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext 在接口中 org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionCopyright © 2025 onecode. All rights reserved.