feat:基于Spring Cloud Bus实现的Producer抽象类获取自己服务实例时获取不到

This commit is contained in:
1906439128@qq.com 2023-03-07 19:02:36 +08:00
parent 5f96b50bad
commit 6d28124299

View File

@ -20,7 +20,7 @@ public abstract class AbstractBusProducer {
@Resource @Resource
protected ServiceMatcher serviceMatcher; protected ServiceMatcher serviceMatcher;
@Value("{spring.application.name}") @Value("${spring.application.name}")
protected String applicationName; protected String applicationName;
protected void publishEvent(RemoteApplicationEvent event) { protected void publishEvent(RemoteApplicationEvent event) {