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); } }