diff --git a/alibaba-rsocket-spring-boot-starter/src/main/java/com/alibaba/spring/boot/rsocket/RSocketListenerAutoConfiguration.java b/alibaba-rsocket-spring-boot-starter/src/main/java/com/alibaba/spring/boot/rsocket/RSocketListenerAutoConfiguration.java index f4ac4038b..9b26f0d24 100644 --- a/alibaba-rsocket-spring-boot-starter/src/main/java/com/alibaba/spring/boot/rsocket/RSocketListenerAutoConfiguration.java +++ b/alibaba-rsocket-spring-boot-starter/src/main/java/com/alibaba/spring/boot/rsocket/RSocketListenerAutoConfiguration.java @@ -15,7 +15,7 @@ * @author leijuan */ @Configuration -@ConditionalOnExpression("'${rsocket.port}'!='0'") +@ConditionalOnExpression("${rsocket.port:0}!=0") public class RSocketListenerAutoConfiguration { @Bean(initMethod = "start", destroyMethod = "stop")