Polish spring-cloud-incubator/spring-cloud-alibaba#261
@@ -19,7 +19,6 @@ package org.springframework.cloud.alibaba.nacos;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.boot.autoconfigure.AutoConfigureBefore;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
-import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.alibaba.nacos.registry.NacosAutoServiceRegistration;
@@ -34,12 +33,11 @@ import org.springframework.context.annotation.Configuration;
/**
* @author xiaojing
+ * @author <a href="mailto:mercyblitz@gmail.com">Mercy</a>
*/
-
@Configuration
@EnableConfigurationProperties
@ConditionalOnNacosDiscoveryEnabled
-@ConditionalOnClass(name = "org.springframework.boot.web.servlet.context.ServletWebServerInitializedEvent")
@ConditionalOnProperty(value = "spring.cloud.service-registry.auto-registration.enabled", matchIfMissing = true)
@AutoConfigureBefore({AutoServiceRegistrationAutoConfiguration.class,
NacosDiscoveryClientAutoConfiguration.class})
