用于快速创建 dubbo 应用的模板脚手架,使用 Gradle 构建项目。
pro-base: 基础代码pro-user-api:user项目对外开放接口pro-user:user项目主体代码pro-article-api:article项目对外开放接口pro-article:article项目主体代码
克隆代码,然后根据需要调整项目与代码
git clone https://github.com/deepraining/spring-dubbo-starter.git yourProName --depth=1
cd yourProName
去掉原有的 Git 信息,并重新初始化
rm -rf .git
git init
请先确保已有 Nacos 服务。
先运行 pro-user 项目
./gradlew pro-user:run
再运行 pro-article 项目
./gradlew pro-article:run
访问数据
// 访问user项目接口
http://localhost:18001/user/articleList
// 访问article项目接口
http://localhost:18002/article/articleList