SDKConfig.java
979 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package com.hotent.sdk.config;
import com.hotent.sdk.properties.AppProperty;
import com.hotent.sdk.service.AuthService;
import com.hotent.sdk.service.BpmHttpService;
import com.hotent.sdk.service.impl.BpmHttpServiceImpl;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import javax.annotation.Resource;
/**
* sdk配置信息
*
* @author liangjc
* @company 广州宏天软件股份有限公司
* @email liangjc@jee-soft.cn
* @date 2023-07-18 14:21
*/
@Configuration
@EnableConfigurationProperties(AppProperty.class)
public class SDKConfig {
@Resource
private AppProperty appProperty;
@Bean
public BpmHttpService bpmService() {
return new BpmHttpServiceImpl(authService(), appProperty);
}
@Bean
public AuthService authService() {
return new AuthService(appProperty);
}
}