报表基础模块:手动注入ureport服务

This commit is contained in:
gaoqr
2024-08-29 10:33:49 +08:00
parent b539efb0e9
commit 62a3f4d8d0
@@ -1,5 +1,8 @@
package com.cf.imes.module.report.framework.ureport.config; package com.cf.imes.module.report.framework.ureport.config;
import com.bstek.datasource.service.DataSourceService;
import com.bstek.datasource.service.impl.DataSourceServiceImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import; import org.springframework.context.annotation.Import;
@@ -10,4 +13,9 @@ import org.springframework.context.annotation.Import;
@Configuration @Configuration
@Import(CfReportSpringbeanRegistrar.class) @Import(CfReportSpringbeanRegistrar.class)
public class ReportConfig { public class ReportConfig {
@Bean
public DataSourceService getUreportDataSourceService() {
return new DataSourceServiceImpl();
}
} }