DUBBO admin服务端和前端UI项目实践

目录

项目资源

启动Zookeeper

启动dubbo-admin-server

 启动dubbo-admin-ui

前后端访问

SwaggerAPI


项目资源

项目地址:https://github.com/apache/incubator-dubbo-ops

DUBBO admin服务端和前端UI项目实践_第1张图片

启动Zookeeper

注意Zookeeper端口是2181.

DUBBO admin服务端和前端UI项目实践_第2张图片

启动dubbo-admin-server

执行如下代码:

/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.apache.dubbo.admin;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;

@SpringBootApplication(exclude={
		DataSourceAutoConfiguration.class, HibernateJpaAutoConfiguration.class
})
public class DubboAdminApplication {

	public static void main(String[] args) {
		SpringApplication.run(DubboAdminApplication.class, args);
	}
}

DUBBO admin服务端和前端UI项目实践_第3张图片

 启动dubbo-admin-ui

启动过程中报错可以不用关注,是mac上编写的问题。

DUBBO admin服务端和前端UI项目实践_第4张图片

前后端访问

后端端口是8080,前端端口是8081.

DUBBO admin服务端和前端UI项目实践_第5张图片

SwaggerAPI

访问:http://localhost:8080/swagger-ui.html

DUBBO admin服务端和前端UI项目实践_第6张图片

你可能感兴趣的:(Zookeeper)