| 6 | import org.springframework.context.annotation.Configuration; |
| 7 | |
| 8 | @Configuration |
| 9 | public class BaseConfig { |
| 10 | @Value("${yuapi.client.access-key}") |
| 11 | String accessKey; |
| 12 | |
| 13 | @Value("${yuapi.client.secret-key}") |
| 14 | String secretKey; |
| 15 | |
| 16 | @Bean |
| 17 | public YuCongMingClient yuCongMingClient() { |
| 18 | return new YuCongMingClient(accessKey, secretKey); |
| 19 | } |
| 20 | } |
nothing calls this directly
no outgoing calls
no test coverage detected