39 lines
592 B
Java
39 lines
592 B
Java
|
package com.ruoyi.common.config;
|
||
|
|
||
|
import lombok.Data;
|
||
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||
|
import org.springframework.stereotype.Component;
|
||
|
|
||
|
/**
|
||
|
* 读取项目相关配置
|
||
|
*
|
||
|
* @author Lion Li
|
||
|
*/
|
||
|
|
||
|
@Data
|
||
|
@Component
|
||
|
@ConfigurationProperties(prefix = "ruoyi")
|
||
|
public class RuoYiConfig {
|
||
|
|
||
|
/**
|
||
|
* 项目名称
|
||
|
*/
|
||
|
private String name;
|
||
|
|
||
|
/**
|
||
|
* 版本
|
||
|
*/
|
||
|
private String version;
|
||
|
|
||
|
/**
|
||
|
* 版权年份
|
||
|
*/
|
||
|
private String copyrightYear;
|
||
|
|
||
|
/**
|
||
|
* 缓存懒加载
|
||
|
*/
|
||
|
private boolean cacheLazy;
|
||
|
|
||
|
}
|