package com.qianwen.core.report.config; //import com.bstek.ureport.UReportPropertyPlaceholderConfigurer; //import com.bstek.ureport.console.UReportServlet; //import com.bstek.ureport.provider.report.ReportProvider; import javax.servlet.Servlet; import com.qianwen.core.report.props.ReportDatabaseProperties; import com.qianwen.core.report.props.ReportProperties; import com.qianwen.core.report.provider.DatabaseProvider; import com.qianwen.core.report.provider.ReportPlaceholderProvider; import com.qianwen.core.report.service.IReportFileService; import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.boot.web.servlet.ServletRegistrationBean; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.ImportResource; import org.springframework.core.annotation.Order; @EnableConfigurationProperties({ReportProperties.class, ReportDatabaseProperties.class}) @ImportResource({"classpath:ureport-console-context.xml"}) @Configuration(proxyBeanMethods = false) @ConditionalOnProperty(value = {"report.enabled"}, havingValue = "true", matchIfMissing = true) @Order /* loaded from: blade-starter-report-9.3.0.0-SNAPSHOT.jar:org/springblade/core/report/config/ReportConfiguration.class */ public class ReportConfiguration { /* @Bean public ServletRegistrationBean registrationBean() { return new ServletRegistrationBean<>(new UReportServlet(), new String[]{"/ureport/*"}); } @Bean public UReportPropertyPlaceholderConfigurer uReportPropertyPlaceholderConfigurer(ReportProperties properties) { return new ReportPlaceholderProvider(properties); } @ConditionalOnMissingBean @Bean public ReportProvider reportProvider(ReportDatabaseProperties properties, IReportFileService service) { return new DatabaseProvider(properties, service); }*/ }