spring用的很开心的标签(随时增加)

1@Scheduled定时任务标签,cron用表达式,或者其他几种方式,方便不能说。使用再方法智商,不能设置范围域。

2@PropertySource定义在整个class文件上,整个class中可以直接用表达式获取properties的内容。

3@Value 定义在变量上 ,用于给变量赋值。

posted @ 2017-03-13 11:32  华生1205  阅读(133)  评论(0)    收藏  举报