首页 / 新闻资讯 / 正文
@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按代码执行括号里的表达式,并返回解析运行结果;
${}
#{}
上一个:宠物批发网平台有哪些品牌(宠物批发网app)
下一个:枫树的一片片叶子像(枫树的叶子像一个个什么)