import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
@EnableDubbo
@EnableDiscoveryClient
@SpringBootApplication
public class DubboSpringCloudServerBootstrap {
public static void main(String[] args) {
// 启动类
SpringApplication.run(DubboSpringCloudServerBootstrap.class, args);
}
}
项目启动,控制台打印警告信息
2020-03-22 02:07:45.433 WARN 16092 --- [ main] o.a.d.c.s.e.SpringExtensionFactory : [DUBBO] No spring extension (bean) named:applicationContext, try to find an extension (bean) of type org.springframework.context.ConfigurableApplicationContext, dubbo version: 2.7.4.1, current host: 192.168.3.4
版本信息,父级 pom
子模块, pom
启动类,代码
项目启动,控制台打印警告信息
2020-03-22 02:07:45.433 WARN 16092 --- [ main] o.a.d.c.s.e.SpringExtensionFactory : [DUBBO] No spring extension (bean) named:applicationContext, try to find an extension (bean) of type org.springframework.context.ConfigurableApplicationContext, dubbo version: 2.7.4.1, current host: 192.168.3.4