springboot built using simple timing task

Directly on the map: get (Be sure to add @EnableScheduling (opening timing of the task) this annotation @Component (let spring scanned)), the following is performed once every five seconds

 

 

 

 

 

 result:

 

Guess you like

Origin www.cnblogs.com/share-record/p/12283399.html