SchedulerConfig.java
1.07 KB
package com.ruoyi.config;
import com.ruoyi.common.SchedulerProperty;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class SchedulerConfig {
@Value("${api.url.getSchedulingInfoNew}")
private String getSchedulingInfoUrl;
@Value("${api.config.nonce}")
private String nonce;
@Value("${api.config.password}")
private String password;
@Value("${api.url.getSchedulingInfo}")
private String getSchedulingInfo;
@Value("${api.url.getSchedulingInfoNew1}")
private String getSchedulingInfoNew1;
@Bean
public SchedulerProperty getSchedulerProperty(){
SchedulerProperty property = new SchedulerProperty();
property.setPassword(password);
property.setNonce(nonce);
property.setGetSchedulingInfoUrl(getSchedulingInfoUrl);
property.setGetSchedulingInfo(getSchedulingInfo);
property.setGetSchedulingInfoNew1(getSchedulingInfoNew1);
return property;
}
}