Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用基于注释的调度程序,例如 @Scheduled(fixedDelay = 1200000) 并且我想传递 langId 、 loginUserId 等信息。
我有一个调度程序 MyScheduler,我在 .property 文件中将其配置为:
<task:annotation-driven /> <bean id="myScheduler" class="ab.abc.txn.service.MyScheduler"></bean>
<property在 bean 定义中使用
<property