All Downloads are FREE. Search and download functionalities are using the official Maven repository.

shz.spring.cron.CronProperties Maven / Gradle / Ivy

There is a newer version: 2023.2.5
Show newest version
package shz.spring.cron;

import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

@ConfigurationProperties(prefix = "cron")
public class CronProperties {
    private List configs;

    public static final class Config {
        private String id;
        private String expression;
        private String className;
        private String methodName;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getExpression() {
            return expression;
        }

        public void setExpression(String expression) {
            this.expression = expression;
        }

        public String getClassName() {
            return className;
        }

        public void setClassName(String className) {
            this.className = className;
        }

        public String getMethodName() {
            return methodName;
        }

        public void setMethodName(String methodName) {
            this.methodName = methodName;
        }
    }

    public List getConfigs() {
        return configs;
    }

    public void setConfigs(List configs) {
        this.configs = configs;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy