Spring's @Scheduled error : Only one AsyncAnnotationBeanPostProcessor may exist within the context

后端 未结 7 1724
梦毁少年i
梦毁少年i 2020-12-06 04:50

I am trying Spring 3\'s @Scheduled annotation . Here is my configuration (app.xml) :




        
7条回答
  •  星月不相逢
    2020-12-06 05:08

    I had this problem when I copied applicationContext.xml and created new one called applicationContextAdditional.xml. I didn't try to find the reason, but both contained namespace

    
    
        ...
    
    
    

    when I removed the namespace from the second one my problem was solved. Maybe it helps someone.

提交回复
热议问题