Only one AsyncAnnotationBeanPostProcessor may exist within the context.


4down
vote

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

<bean ...
    xmlns:task="http://www.springframework.org/schema/task"
    ...
    xsi:schemaLocation="
   http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-3.0.xsd" >

    ...

</bean>

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

红色命名空间出现2次。

I have faced this once after implementing our own AsyncTaskExecutor andforgetting to remove default <task:
annotation-driven/>

Check if you have something like this, if yes remove one of the task.

<task:annotation-driven executor="customAsyncTaskExecutor" scheduler="taskScheduler"/>

<task:annotation-driven/>

<task:annotation-driven>出现两次。

2down
vote

This happens when spring parses the <task:annotation-driven/> text
twice in a config XML.

For me this was happening because both applicationContext-root.xml and applicationContext-where-annotation-driven-is-specififed.xml were
imported in my WEB.xml in <context-param>section.

Leaving only applicationContext-root.xml in WEB.xml solved
the issue.

<task:annotation-driven/>出现两次。

时间: 2024-10-12 02:33:28

Only one AsyncAnnotationBeanPostProcessor may exist within the context.的相关文章

Configuration problem: Only one AsyncAnnotationBeanPostProcessor may exist within the context.

去配置文件中找 , 某个配置文件被引用了两次以上.移除后保留一个即可.如下即可产生上述问题 <import resource="classpath:testContext-currentproduct.xml" /> <import resource="classpath:testContext-currentproduct.xml" /> <import resource="classpath:testContext-eli

Spring Task Scheduler - No qualifying bean of type [org.springframework.scheduling.TaskScheduler] is defined

1. Overview In this article, we are discussing the Springorg.springframework.beans.factory.NoSuchBeanDefinitionException – this is a common exception thrown by the BeanFactory when trying to resolve a bean that simply isn’t defined in the Spring Cont

Smart internet of things services

A method and apparatus enable Internet of Things (IoT) services based on a SMART IoT architecture by integrating connectivity, content, cognition, context, cloud, and collaboration. Joint optimization of a combination of any of connectivity, content,

ra_interface_lines_all 接口表各字段说明

note:Description and Usage of Fields in RA_INTERFACE_LINES Table [ID 1195997.1] 核心内容: Field Name and Description Validation and Destination User should provide data when... and Reference Information INTERFACE_LINE_ID This column is used by AutoInvoic

Architectures for concurrent graphics processing operations

BACKGROUND 1. Field The present invention generally relates to rendering two-dimension representations from three-dimensional scenes, and more particularly to using ray tracing for accelerated rendering of photo-realistic two-dimensional representati

安卓编码规范

安卓编程规范 一. 包 1. 包命名全部采用小写,不用下划线区分单词 2. 主包名采用[公司性质].[公司名称].[项目名称]的命名方式例如:翡翠做的手机助手包名edu.feicui.assistant 3. 通用功能子包名采用[主包名].[通用名称]的命名方式常见通用功能如下表: 包名 含义 [主包名].main 基础Activity及入口Activity所在的包 [主包名].util 通用工具类所在的包 [主包名].view 自定义View所在的包 [主包名].db 数据库操作相关所在的包

PA教材提纲 TAW12-2

Unit1 Adjustment of SAP Standard Software(SAP标准软件修改) 1.1 Adjusting SAP Standard Software(如何修改SAP标准软件) SAP标准应用的修改可分为三个级别: Personalization: 个性化,通过配置不用开发 Transaction Variants Modification: 修改,可能影响升级 Modification Assistant User Exit Enhancement: 增强 ABAP

什么是架构

什么是软件架构 前言:软体设计师中有一些技术水平较高.经验较为丰富的人,他们需要承担软件系统的架构设计,也就是需要设计系统的元件如何划分.元件之间如何发生相互作用,以及系统中逻辑的.物理的.系统的重要决定的作出.在很多公司中,架构师不是一个专门的和正式的职务.通常在一个开发小组中,最有经验的程序员会负责一些架构方面的工作.在一个部门中,最有经验的项目经理会负责一些架构方面的工作.但是,越来越多的公司体认到架构工作的重要性. 什么是软件系统的架构(Architecture)?一般而言,架构有两个要

vs 编译错误 The name &#39;InitializeComponent&#39; does not exist in the current context in WPF application

1:文件命名空间的问题 xaml文件和model.cs文件的命名空间 2:csproj 那么它究竟是给谁用的呢?那是给开发工具用的,例如我们在熟悉不过的Visual Studio,以及大家可以没有接触过,但是应该都听说过的MSBuild.exe.Visual Studio会根据csproj里的XML定义来管理项目文件以及相关其他一些种类非常丰富的数据及操作,MSBuild也会根据csproj文件来得知编译这个项目需要有哪些依赖,默认输出路径,Pre-Build和Post-Build需要哪些操作等