|
|
@ -17,11 +17,13 @@ public class StartupRunner implements CommandLineRunner { |
|
|
|
private String publicId; |
|
|
|
private String publicId; |
|
|
|
@Value("${hzims.weather.private-key}") |
|
|
|
@Value("${hzims.weather.private-key}") |
|
|
|
private String privateKey; |
|
|
|
private String privateKey; |
|
|
|
|
|
|
|
@Value("${hzims.weather.domain}") |
|
|
|
|
|
|
|
private String domain; |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void run(String... args) throws Exception { |
|
|
|
public void run(String... args) throws Exception { |
|
|
|
log.info(">>>>>>>>>>>>>>>服务启动执行,执行初始化天气操作<<<<<<<<<<<<<"); |
|
|
|
log.info(">>>>>>>>>>>>>>>服务启动执行,执行初始化天气操作<<<<<<<<<<<<<"); |
|
|
|
log.info("publicId:{},privateKey:{}",publicId,privateKey); |
|
|
|
log.info("publicId:{},privateKey:{}",publicId,privateKey); |
|
|
|
HeWeatherInitialize.init(publicId, privateKey); |
|
|
|
HeWeatherInitialize.init(publicId, privateKey, domain); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|