删除 template/common/src/main/java/{{.packagePath}}/common/config/RocketMqAutoConfiguration.java
This commit is contained in:
@@ -1,19 +0,0 @@
|
||||
package {{ .package }}.common.config;
|
||||
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import jakarta.annotation.Resource;
|
||||
import {{ .package }}.common.config.MqConfig;
|
||||
import {{ .package }}.common.rocketmq.RocketMQService;
|
||||
import {{ .package }}.common.rocketmq.RocketMQServiceImpl;
|
||||
|
||||
@Configuration
|
||||
public class RocketMqAutoConfiguration {
|
||||
@Resource
|
||||
private MqConfig mqConfig;
|
||||
@Bean
|
||||
RocketMQService createRocketMQService() {
|
||||
RocketMQServiceImpl instance = new RocketMQServiceImpl(mqConfig.getNameServer());
|
||||
return instance;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user