|
|
@ -1,7 +1,9 @@ |
|
|
|
package com.epmet.commons.thirdplat.config; |
|
|
|
|
|
|
|
import com.epmet.commons.thirdplat.apiservice.jcet.JcetApiService; |
|
|
|
import com.epmet.commons.thirdplat.properties.ThirdplatProps; |
|
|
|
import org.springframework.boot.context.properties.EnableConfigurationProperties; |
|
|
|
import org.springframework.context.annotation.Bean; |
|
|
|
import org.springframework.context.annotation.Configuration; |
|
|
|
|
|
|
|
/** |
|
|
@ -11,4 +13,9 @@ import org.springframework.context.annotation.Configuration; |
|
|
|
@EnableConfigurationProperties(ThirdplatProps.class) |
|
|
|
public class ThirdplatConfig { |
|
|
|
|
|
|
|
@Bean |
|
|
|
public JcetApiService JcetApiService(ThirdplatProps props) { |
|
|
|
return new JcetApiService(props); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|