提交 | 用户 | 时间
e7c126 1 package com.iailab.module.report.framework.jmreport.config;
H 2
3 import com.iailab.framework.security.config.SecurityProperties;
4 import com.iailab.module.system.api.oauth2.OAuth2TokenApi;
5 import com.iailab.module.report.framework.jmreport.core.service.JmReportTokenServiceImpl;
6 import com.iailab.module.system.api.permission.PermissionApi;
7 import org.jeecg.modules.jmreport.api.JmReportTokenServiceI;
8 import org.springframework.context.annotation.Bean;
9 import org.springframework.context.annotation.ComponentScan;
10 import org.springframework.context.annotation.Configuration;
11
12 /**
13  * 积木报表的配置类
14  *
15  * @author iailab
16  */
17 @Configuration(proxyBeanMethods = false)
18 @ComponentScan(basePackages = "org.jeecg.modules.jmreport") // 扫描积木报表的包
19 public class JmReportConfiguration {
20
21     @Bean
22     @SuppressWarnings("SpringJavaInjectionPointsAutowiringInspection")
23     public JmReportTokenServiceI jmReportTokenService(OAuth2TokenApi oAuth2TokenApi,
24                                                       PermissionApi permissionApi,
25                                                       SecurityProperties securityProperties) {
26         return new JmReportTokenServiceImpl(oAuth2TokenApi, permissionApi, securityProperties);
27     }
28
29 }