问题描述 Invalid bean definition with name ‘myRule’ defined in com.gwolf.config.MyRule: Bean name derived from @Bean method ‘myRule’ clashes with bean name for containing configuration class; please make those names unique! 问题解决 ConfigBean中定义了一个相同的Bean名字 详细: CustomRule: ConfigBean: