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

com.starmcc.qmframework.config.VersionConfiguration Maven / Gradle / Ivy

Go to download

springboot based on a series of packaging framework. QmFramework to implements AOP, rewrite the requestBody, global exception catching,version checking, request body parameter symmetric encryption mechanism, controller packaging and the toolkit collection. thank you for using it.

There is a newer version: 3.0.1-RELEASE
Show newest version
package com.starmcc.qmframework.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 版本配置
 *
 * @Author: qm
 * @Date: 2019/8/29 17:49
 */
@ConfigurationProperties(prefix = "qmframework.version", ignoreUnknownFields = false)
public class VersionConfiguration {

    public static boolean start;
    public static String now;
    public static String[] allows;

    @Value("${start:false}")
    public void setStart(boolean start) {
        VersionConfiguration.start = start;
    }

    @Value("${now:1.0.0}")
    public void setNow(String now) {
        VersionConfiguration.now = now;
    }

    @Value("${allows:}")
    public void setAllows(String[] allows) {
        VersionConfiguration.allows = allows;
    }

    public boolean isStart() {
        return VersionConfiguration.start;
    }

    public String getNow() {
        return VersionConfiguration.now;
    }

    public String[] getAllows() {
        return VersionConfiguration.allows;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy