fix 修复 web模块 不引入nacos依赖报错问题

2.X
疯狂的狮子li 2 years ago
parent c92eb5d199
commit b25fd6fd75

@ -8,6 +8,7 @@ import com.alibaba.cloud.nacos.discovery.NacosDiscoveryClientConfiguration;
import com.alibaba.cloud.nacos.discovery.NacosWatch;
import com.ruoyi.common.web.nacos.CustomNacosWatch;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.cloud.client.ConditionalOnBlockingDiscoveryEnabled;
import org.springframework.cloud.client.ConditionalOnDiscoveryEnabled;
@ -18,6 +19,7 @@ import org.springframework.context.annotation.Bean;
*
* @author Lion Li
*/
@ConditionalOnClass(NacosWatch.class)
@AutoConfiguration(
before = NacosDiscoveryClientConfiguration.class,
after = NacosDiscoveryAutoConfiguration.class

Loading…
Cancel
Save