SchedulerConfig.java 799 Bytes
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;

    @Bean
    public SchedulerProperty getSchedulerProperty(){
        SchedulerProperty property = new SchedulerProperty();
        property.setPassword(password);
        property.setNonce(nonce);
        property.setGetSchedulingInfoUrl(getSchedulingInfoUrl);
        return property;
    }
}