Files
SOP/doc/docs/files/10010_快速体验.md
2019-07-18 17:37:34 +08:00

24 lines
1.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 快速体验
> 运行环境JDK8Maven3ZookeeperMysql
- 安装并启动zookeeper[安装教程](http://zookeeper.apache.org/doc/r3.4.13/zookeeperStarted.html)
- 执行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-test打开测试用例进行接口调用测试运行com.gitee.sop.AlipayClientPostTest.testPost()
确保注册中心先启动
## 使用admin
- 找到`sop-admin/sop-admin-server`工程打开sop-admin-server下的`application-dev.properties`,修改相关配置
- 运行`com.gitee.sop.adminserver.SopAdminServerApplication.java`
- 访问:`http://localhost:8082`
登录账号admin/123456