@Scheduled(cron = "${schedule.update-ldap-users.cron}" )
schedule.update-ldap-users.cron=0 0/20 * * * * 修改配置文件后,需重启代码才能生效
schedule.update-ldap-users.cron=0 0/20 * * * *
另:${}从配置文件取值#{} SpEL,按代码执行, spring按代码执行括号里的表达式,并返回解析运行结果;
${}
#{}
优雅处理API统一返回
安装引入axios