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

com.nxyfan.framework.common.prop.CommonProperties Maven / Gradle / Ivy

There is a newer version: 1.6.3
Show newest version
package com.nxyfan.framework.common.prop;

import lombok.Getter;
import lombok.Setter;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;
import org.springframework.beans.factory.annotation.Value;

/**
 * 通用基础配置
 *
 * @author amour
 * @date 2022/1/2 17:03
 */
@Getter
@Setter
@Component
//@ConfigurationProperties(prefix = "project")
@PropertySource("classpath:application.properties")
public class CommonProperties {

    /** 前端地址 */
	@Value("${project.front.url:''}")
    private String projectFrontUrl;
    
    /** 后端地址 */
	@Value("${project.backend.url:''}")
    private String projectBackendUrl;
    
    /** 系统token名称 */
	@Value("${sa-token.token-name:''}")
    private String tokenName;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy