spring容器发布dubbo服务
spring发布dubbo服务,只需要启动spring框架即可,不需要利用tomcat等容器,节省资源
public class Main {
public static void main(String[] args) {
com.alibaba.dubbo.container.Main.main(args);
}
}
classpath下需要dubbo.properties
dubbo.spring.config=classpath:spring/spring-context.xml