
com.nxyfan.framework.common.prop.CommonProperties Maven / Gradle / Ivy
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