如,配置文件设置参数: xishuai.weixin.appid = 44444444 那么在程序里使用方式: @Value("${xishuai.weixin.appid}") private String appid;