@Data @ConfigurationProperties(prefix = "recruitment.config") @Component public class RecruitmentConfigProperty { /** * 完成招募跳转url */ private String completeJumpUrl; /** * 未完成招募跳转url */ private String notCompleteJumpUrl; }
注意prefix 中配置名称不要有大写
标签:String,url,配置,private,prefix,跳转,springboot From: https://www.cnblogs.com/niun/p/16723498.html