File tree Expand file tree Collapse file tree 4 files changed +0
-16
lines changed
rocketmq-spring-boot/src/main/java/org/apache/rocketmq/spring/autoconfigure
rocketmq-v5-client-spring-boot/src/main/java/org/apache/rocketmq/client/autoconfigure Expand file tree Collapse file tree 4 files changed +0
-16
lines changed Original file line number Diff line number Diff line change 3131import org .springframework .aop .scope .ScopedProxyUtils ;
3232import org .springframework .beans .BeansException ;
3333import org .springframework .beans .factory .SmartInitializingSingleton ;
34- import org .springframework .beans .factory .support .BeanDefinitionValidationException ;
3534import org .springframework .context .ApplicationContext ;
3635import org .springframework .context .ApplicationContextAware ;
3736import org .springframework .context .ConfigurableApplicationContext ;
3837import org .springframework .context .annotation .Configuration ;
39- import org .springframework .context .support .GenericApplicationContext ;
4038import org .springframework .core .env .ConfigurableEnvironment ;
4139import org .springframework .util .Assert ;
4240import org .springframework .util .StringUtils ;
Original file line number Diff line number Diff line change 3636import org .springframework .context .ApplicationContextAware ;
3737import org .springframework .context .ConfigurableApplicationContext ;
3838import org .springframework .context .annotation .Configuration ;
39- import org .springframework .context .support .GenericApplicationContext ;
4039import org .springframework .core .env .ConfigurableEnvironment ;
4140import org .springframework .util .StringUtils ;
4241
@@ -132,13 +131,4 @@ private DefaultMQProducer createProducer(ExtRocketMQTemplateConfiguration annota
132131 producer .setInstanceName (annotation .instanceName ());
133132 return producer ;
134133 }
135-
136- private void validate (ExtRocketMQTemplateConfiguration annotation ,
137- GenericApplicationContext genericApplicationContext ) {
138- if (genericApplicationContext .isBeanNameInUse (annotation .value ())) {
139- throw new BeanDefinitionValidationException (String .format ("Bean %s has been used in Spring Application Context, " +
140- "please check the @ExtRocketMQTemplateConfiguration" ,
141- annotation .value ()));
142- }
143- }
144134}
Original file line number Diff line number Diff line change 3131import org .springframework .aop .scope .ScopedProxyUtils ;
3232import org .springframework .beans .BeansException ;
3333import org .springframework .beans .factory .SmartInitializingSingleton ;
34- import org .springframework .beans .factory .support .BeanDefinitionValidationException ;
3534import org .springframework .context .ApplicationContext ;
3635import org .springframework .context .ApplicationContextAware ;
3736import org .springframework .context .ConfigurableApplicationContext ;
3837import org .springframework .context .annotation .Configuration ;
39- import org .springframework .context .support .GenericApplicationContext ;
4038import org .springframework .core .env .ConfigurableEnvironment ;
4139import org .springframework .util .Assert ;
4240import org .springframework .util .StringUtils ;
Original file line number Diff line number Diff line change 3030import org .springframework .aop .scope .ScopedProxyUtils ;
3131import org .springframework .beans .BeansException ;
3232import org .springframework .beans .factory .SmartInitializingSingleton ;
33- import org .springframework .beans .factory .support .BeanDefinitionValidationException ;
3433import org .springframework .context .ApplicationContext ;
3534import org .springframework .context .ApplicationContextAware ;
3635import org .springframework .context .ConfigurableApplicationContext ;
3736import org .springframework .context .annotation .Configuration ;
38- import org .springframework .context .support .GenericApplicationContext ;
3937import org .springframework .core .env .ConfigurableEnvironment ;
4038import org .springframework .util .StringUtils ;
4139
You can’t perform that action at this time.
0 commit comments