已存在相同的Bean文件 A bean with that name has already been defined and overriding is disabled.

报错信息:

***************************
APPLICATION FAILED TO START
***************************
Description:
The bean 'scopedTarget.IMPORT_PRODUCT_listener' could not be registered. A bean with that name has already been defined and overriding is disabled.
Action:
Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true

此报错是因为我的项目中启用了相同名称的批任务,查找到IMPORT_PRODUCT的批任务,将不同的批任务分别开。

可自查是否跟我出现相同的情况。
此文章只为记录,如有不同意见可在下方评论。

你可能感兴趣的:(遇到的一些问题)