首页 > 其他分享 >springboot 配置类

springboot 配置类

时间:2022-09-23 17:35:01浏览次数:45  
标签:String url 配置 private prefix 跳转 springboot



@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

相关文章