jeecgboot / JimuReport

「可视化报表、仪表盘、大屏」积木报表是一款类Excel操作风格,在线拖拽设计的报表工具。功能涵盖: 报表设计、打印设计、图形报表、仪表盘门户设计、大屏设计等,完全免费!秉承“简单、易用、专业”的产品理念,极大的降低报表开发难度、缩短开发周期、解决各类报表难题。
http://jimureport.com
GNU General Public License v3.0
6.48k stars 1.66k forks source link

springboot3使用分库数据源配置,启动提示Bean被提前实例化 #3001

Closed WHO57 closed 3 weeks ago

WHO57 commented 1 month ago
版本号:1.8.0
问题描述:

AI解释为:启动提示Bean被提前实例化导致它们无法被所有的 BeanPostProcessor 处理

错误日志&截图:

2024-09-25T09:15:03.409+08:00 WARN 16700 --- [jm-influxdb] [ main] trationDelegate$BeanPostProcessorChecker : Bean 'dataSourceConfig' of type [com.jimureport.demo.common.config.DataSourceConfig$$SpringCGLIB$$0] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [persistenceExceptionTranslationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies. 2024-09-25T09:15:03.414+08:00 WARN 16700 --- [jm-influxdb] [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.commons.config.CommonsConfigAutoConfiguration' of type [org.springframework.cloud.commons.config.CommonsConfigAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [persistenceExceptionTranslationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies. 2024-09-25T09:15:03.415+08:00 WARN 16700 --- [jm-influxdb] [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.client.loadbalancer.LoadBalancerDefaultMappingsProviderAutoConfiguration' of type [org.springframework.cloud.client.loadbalancer.LoadBalancerDefaultMappingsProviderAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [persistenceExceptionTranslationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies. 2024-09-25T09:15:03.416+08:00 WARN 16700 --- [jm-influxdb] [ main] trationDelegate$BeanPostProcessorChecker : Bean 'loadBalancerClientsDefaultsMappingsProvider' of type [org.springframework.cloud.client.loadbalancer.LoadBalancerDefaultMappingsProviderAutoConfiguration$$Lambda$583/0x000001f7863a1bd8] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [persistenceExceptionTranslationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies. 2024-09-25T09:15:03.416+08:00 WARN 16700 --- [jm-influxdb] [ main] trationDelegate$BeanPostProcessorChecker : Bean 'defaultsBindHandlerAdvisor' of type [org.springframework.cloud.commons.config.DefaultsBindHandlerAdvisor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [persistenceExceptionTranslationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies. 2024-09-25T09:15:03.426+08:00 WARN 16700 --- [jm-influxdb] [ main] trationDelegate$BeanPostProcessorChecker : Bean 'minidaoDataSource' of type [com.zaxxer.hikari.HikariDataSource] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [persistenceExceptionTranslationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies. 2024-09-25T09:15:03.448+08:00 WARN 16700 --- [jm-influxdb] [ main] trationDelegate$BeanPostProcessorChecker : Bean '(inner bean)#64f9f455#10' of type [org.jeecgframework.minidao.aop.MiniDaoHandler] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [persistenceExceptionTranslationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies. 2024-09-25T09:15:03.450+08:00 WARN 16700 --- [jm-influxdb] [ main] trationDelegate$BeanPostProcessorChecker : Bean 'jimuReportShareDao' of type [org.jeecgframework.minidao.factory.MiniDaoBeanFactory] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [persistenceExceptionTranslationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies. 2024-09-25T09:15:03.452+08:00 WARN 16700 --- [jm-influxdb] [ main] trationDelegate$BeanPostProcessorChecker : Bean '(inner bean)#64f9f455#9' of type [org.jeecgframework.minidao.aop.MiniDaoHandler] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [persistenceExceptionTranslationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies. 2024-09-25T09:15:03.452+08:00 WARN 16700 --- [jm-influxdb] [ main] trationDelegate$BeanPostProcessorChecker : Bean 'jimuReportMapDao' of type [org.jeecgframework.minidao.factory.MiniDaoBeanFactory] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [persistenceExceptionTranslationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies. 2024-09-25T09:15:03.453+08:00 WARN 16700 --- [jm-influxdb] [ main] trationDelegate$BeanPostProcessorChecker : Bean '(inner bean)#64f9f455#8' of type [org.jeecgframework.minidao.aop.MiniDaoHandler] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [persistenceExceptionTranslationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies. 2024-09-25T09:15:03.453+08:00 WARN 16700 --- [jm-influxdb] [ main] trationDelegate$BeanPostProcessorChecker : Bean 'jimuReportLinkDao' of type [org.jeecgframework.minidao.factory.MiniDaoBeanFactory] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [persistenceExceptionTranslationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies. 2024-09-25T09:15:03.454+08:00 WARN 16700 --- [jm-influxdb] [ main] trationDelegate$BeanPostProcessorChecker : Bean '(inner bean)#64f9f455#7' of type [org.jeecgframework.minidao.aop.MiniDaoHandler] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [persistenceExceptionTranslationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies. 2024-09-25T09:15:03.454+08:00 WARN 16700 --- [jm-influxdb] [ main] trationDelegate$BeanPostProcessorChecker : Bean 'jimuReportExportLogDao' of type [org.jeecgframework.minidao.factory.MiniDaoBeanFactory] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [persistenceExceptionTranslationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies. 2024-09-25T09:15:03.454+08:00 WARN 16700 --- [jm-influxdb] [ main] trationDelegate$BeanPostProcessorChecker : Bean '(inner bean)#64f9f455#6' of type [org.jeecgframework.minidao.aop.MiniDaoHandler] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [persistenceExceptionTranslationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies. 2024-09-25T09:15:03.455+08:00 WARN 16700 --- [jm-influxdb] [ main] trationDelegate$BeanPostProcessorChecker : Bean 'jimuReportDictItemDao' of type [org.jeecgframework.minidao.factory.MiniDaoBeanFactory] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [persistenceExceptionTranslationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies. 2024-09-25T09:15:03.455+08:00 WARN 16700 --- [jm-influxdb] [ main] trationDelegate$BeanPostProcessorChecker : Bean '(inner bean)#64f9f455#5' of type [org.jeecgframework.minidao.aop.MiniDaoHandler] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [persistenceExceptionTranslationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies. 2024-09-25T09:15:03.455+08:00 WARN 16700 --- [jm-influxdb] [ main] trationDelegate$BeanPostProcessorChecker : Bean 'jimuReportDictDao' of type [org.jeecgframework.minidao.factory.MiniDaoBeanFactory] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [persistenceExceptionTranslationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies. 2024-09-25T09:15:03.456+08:00 WARN 16700 --- [jm-influxdb] [ main] trationDelegate$BeanPostProcessorChecker : Bean '(inner bean)#64f9f455#4' of type [org.jeecgframework.minidao.aop.MiniDaoHandler] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [persistenceExceptionTranslationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies. 2024-09-25T09:15:03.456+08:00 WARN 16700 --- [jm-influxdb] [ main] trationDelegate$BeanPostProcessorChecker : Bean 'jimuReportDbParamDao' of type [org.jeecgframework.minidao.factory.MiniDaoBeanFactory] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [persistenceExceptionTranslationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies. 2024-09-25T09:15:03.457+08:00 WARN 16700 --- [jm-influxdb] [ main] trationDelegate$BeanPostProcessorChecker : Bean '(inner bean)#64f9f455#3' of type [org.jeecgframework.minidao.aop.MiniDaoHandler] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [persistenceExceptionTranslationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies. 2024-09-25T09:15:03.457+08:00 WARN 16700 --- [jm-influxdb] [ main] trationDelegate$BeanPostProcessorChecker : Bean 'jimuReportDbFieldDao' of type [org.jeecgframework.minidao.factory.MiniDaoBeanFactory] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [persistenceExceptionTranslationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies. 2024-09-25T09:15:03.457+08:00 WARN 16700 --- [jm-influxdb] [ main] trationDelegate$BeanPostProcessorChecker : Bean '(inner bean)#64f9f455#2' of type [org.jeecgframework.minidao.aop.MiniDaoHandler] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [persistenceExceptionTranslationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies. 2024-09-25T09:15:03.457+08:00 WARN 16700 --- [jm-influxdb] [ main] trationDelegate$BeanPostProcessorChecker : Bean 'jimuReportDbDao' of type [org.jeecgframework.minidao.factory.MiniDaoBeanFactory] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [persistenceExceptionTranslationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies. 2024-09-25T09:15:03.458+08:00 WARN 16700 --- [jm-influxdb] [ main] trationDelegate$BeanPostProcessorChecker : Bean '(inner bean)#64f9f455#1' of type [org.jeecgframework.minidao.aop.MiniDaoHandler] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [persistenceExceptionTranslationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies. 2024-09-25T09:15:03.458+08:00 WARN 16700 --- [jm-influxdb] [ main] trationDelegate$BeanPostProcessorChecker : Bean 'jimuReportDataSourceDao' of type [org.jeecgframework.minidao.factory.MiniDaoBeanFactory] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [persistenceExceptionTranslationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies. 2024-09-25T09:15:03.459+08:00 WARN 16700 --- [jm-influxdb] [ main] trationDelegate$BeanPostProcessorChecker : Bean '(inner bean)#64f9f455' of type [org.jeecgframework.minidao.aop.MiniDaoHandler] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [persistenceExceptionTranslationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies. 2024-09-25T09:15:03.459+08:00 WARN 16700 --- [jm-influxdb] [ main] trationDelegate$BeanPostProcessorChecker : Bean 'jimuReportDao' of type [org.jeecgframework.minidao.factory.MiniDaoBeanFactory] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [persistenceExceptionTranslationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.

重现步骤:

原版本为:spring boot版本为2.6.13

org.jeecgframework.jimureport jimureport-spring-boot-starter 1.8.0

更换为 spring-boot版本为3.2.4

org.jeecgframework.jimureport jimureport-spring-boot3-starter-fastjson2 1.8.0

使用的数据库配置方法为: @Configuration public class DataSourceConfig{

/**
 *  1、bean的名称必须为minidaoDataSource,否则不生效
 *  2、jeecg.minidao-datasource对应的是yml中的jeecg下的minidao-datasource,可自定义
 */
@Bean(name="minidaoDataSource")
@ConfigurationProperties(prefix = "jeecg.minidao-datasource")
public DataSource dataSource(){
    return DataSourceBuilder.create().build();
}

@Bean(name = "testDataSource")
@Primary
@ConfigurationProperties(prefix = "jeecg.test-datasource")
public DataSource testDataSource() {
    return DataSourceBuilder.create().build();
}

} 启动会出现该报错

友情提示(为了提高issue处理效率):

WHO57 commented 1 month ago

这个错误是否可以避免?求解!!!

jeecgos commented 1 month ago

ws

jeecgos commented 3 weeks ago

已修复,待新版本发布。