Why isn't Spring running my @Scheduled method?

前端 未结 8 1660
天涯浪人
天涯浪人 2020-12-29 03:18

I\'m a bit befuddled because I\'m trying use use @Scheduled annotations, but Spring doesn\'t seem to be finding my methods. The end result is that, none of my m

8条回答
  •  再見小時候
    2020-12-29 04:06

    I solved by adding both:

    xmlns:task="http://www.springframework.org/schema/task"
    xmlns:tx="http://www.springframework.org/schema/tx"
    

    then:

    
        
        
        
    

    and in the bootom of my applicationContext.xml:

    
    

提交回复
热议问题