shikeying
2024-04-07 52c8ee3120e4a44e48e217bced6f6c799ff7980c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package com.iplatform.report.config;
 
import com.iplatform.report.support.JimuReportTokenService;
import com.walker.web.TokenGenerator;
import org.jeecg.modules.jmreport.api.JmReportTokenServiceI;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
 
@Configuration
public class ReportConfig {
 
    @Bean
    public JmReportTokenServiceI jmReportTokenServiceI(TokenGenerator tokenGenerator){
        JimuReportTokenService jimuReportTokenService = new JimuReportTokenService();
        jimuReportTokenService.setTokenGenerator(tokenGenerator);
        return jimuReportTokenService;
    }
}