|
|
|
@ -6,8 +6,13 @@ |
|
|
|
|
- 执行Mysql脚本`sop.sql` |
|
|
|
|
- IDE安装lombok插件,然后打开项目(IDEA下可以打开根pom.xml,然后open as project) |
|
|
|
|
- 启动注册中心,sop-registry(运行SopRegistryApplication.java) |
|
|
|
|
- 启动网关:打开sop-gateway下的`application-dev.properties`,修改数据库`username/password`,指定zookeeper地址,运行`SopGatewayApplication.java` |
|
|
|
|
- 启动微服务:sop-story-web(运行SopStoryApplication.java) |
|
|
|
|
- 启动网关:打开sop-gateway下的`application-dev.properties` |
|
|
|
|
1. 修改数据库`username/password` |
|
|
|
|
2. 指定zookeeper地址,如果zookeeper安装在本机则不用改 |
|
|
|
|
3. 运行`SopGatewayApplication.java` |
|
|
|
|
- 启动微服务:打开sop-story-web下的`application-dev.properties`文件 |
|
|
|
|
1. 指定zookeeper地址,如果zookeeper安装在本机则不用改 |
|
|
|
|
2. 运行`SopStoryApplication.java` |
|
|
|
|
- 找到sop-test,打开测试用例,进行接口调用测试,运行com.gitee.sop.AlipayClientPostTest.testPost() |
|
|
|
|
|
|
|
|
|
确保注册中心先启动 |
|
|
|
@ -15,7 +20,7 @@ |
|
|
|
|
## 使用admin |
|
|
|
|
|
|
|
|
|
- 找到`sop-admin/sop-admin-server`工程,打开sop-admin-server下的`application-dev.properties`,修改相关配置 |
|
|
|
|
- 运行`com.gitee.sop.adminserver.SopAdminServerApplication.java` |
|
|
|
|
- 运行`SopAdminServerApplication.java` |
|
|
|
|
- 访问:`http://localhost:8082` |
|
|
|
|
|
|
|
|
|
登录账号:admin/123456 |
|
|
|
|