1. 由于Advisor会优先初始化,故相关@Bean应加: @Role(BeanDefinition.ROLE_INFRASTRUCTURE)
以消除:is not eligible for getting processed by all BeanPostProcessors
2. 去除@EnableConfigurationProperties(DynamicDataSourceProperties.class) 改为static方式配置是为了加@Role(BeanDefinition.ROLE_INFRASTRUCTURE)
3. spring 5.2+ 配置类如不内部不存在@Bean方法引用应加: proxyBeanMethods = false 以去除不必要代理类
ie: `@Configuration(proxyBeanMethods = false)`
此PR是了消除启动时的以下日志:
```
[restartedMain] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker[376] - Bean 'spring.datasource.dynamic-com.baomidou.dynamic.datasource.spring.boot.autoconfigure.DynamicDataSourceProperties' of type [com.baomidou.dynamic.datasource.spring.boot.autoconfigure.DynamicDataSourceProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
12-23 09:29:16.779 [restartedMain] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker[376] - Bean 'dsProcessor' of type [com.baomidou.dynamic.datasource.processor.DsHeaderProcessor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
```