-
Notifications
You must be signed in to change notification settings - Fork 41.5k
Closed
Description
some lib using BFPP to do customized things,i want to modify this to spring boot,so I use this styple
@Bean
@ConditionalOnMissingBean
public BeanFactoryPostProcessor hSpringProviderPackageScanner() {
.....
Environment env = applicationContext.getEnvironment();
}
But this method would result in my datasource properties can not autowired,as @bean javadoc said.i try to modify hSpringProviderPackageScanner to static,but in my hSpringProviderPackageScanner method ,I want to get some beans from applicationContext(but can not get this instance from static field) . how to do this ?please give me some advice
Metadata
Metadata
Assignees
Labels
No labels