给普通变量赋值
@Component
@PropertySource("classpath:application.properties")
@ConfigurationProperties(prefix = "path")
@Getter
@Setter
public class ConstantsUrl {
@Value("${path.rootPath}")
private String rootPath;
@Value("${path.BPath}")
private String BPath;
@Value("${path.GPath}")
private String GPath;
@Value("${path.TPath}")
private String TPath;
@Value("${path.IPath}")
private String IPath;
@Value("${path.BbulPath}")
private String BbulPath;
@Value("${path.GbulPath}")
private String GbulPath;
@Value("${path.TbulPath}")
private String TbulPath;
@Value("${path.IbulPath}")
private String IbulPath;
@Value("${path.BlsPath}")
private String BlsPath;
@Value("${path.GlsPath}")
private String GlsPath;
@Value("${path.TlsPath}")
private String TlsPath;
@Value("${path.IlsPath}")
private String IlsPath;
@Value("${path.BACKUP_root_path}")
private String BACKUP_root_path;
调用