| | |
| | | |
| | | import javax.sql.DataSource; |
| | | import com.qianwen.smartman.common.constant.FmsConstant; |
| | | import com.qianwen.core.report.datasource.ReportDataSource; |
| | | //import com.qianwen.core.report.datasource.ReportDataSource; |
| | | import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; |
| | | import org.springframework.context.annotation.Bean; |
| | | import org.springframework.context.annotation.Configuration; |
| | |
| | | @Configuration |
| | | @ConditionalOnProperty(value = {"report.enabled"}, havingValue = FmsConstant.AUTOMATIC, matchIfMissing = true) |
| | | public class BladeReportConfiguration { |
| | | @Bean |
| | | public ReportDataSource reportDataSource(DataSource dataSource) { |
| | | return new ReportDataSource(dataSource); |
| | | } |
| | | //@Bean |
| | | //public ReportDataSource reportDataSource(DataSource dataSource) { |
| | | // return new ReportDataSource(dataSource); |
| | | // } |
| | | } |