You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 1.9 kB

4 years ago
4 years ago
4 years ago
2 years ago
4 years ago
4 years ago
2 years ago
4 years ago
4 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # Spring Cloud
  2. ## 微服务框架核心组件
  3. Nacos + Fegin + Gateway + (Spring Security + JWT + OAuth2)
  4. 数据库连接池 Druid
  5. 需要额外部署 Mysql Nacos
  6. ## 初始化配置
  7. ### Mysql
  8. 初始化sql位置 /sql
  9. **地址:** 127.0.0.1
  10. **用户名:** test **密码:** zj12345678
  11. ### Nacos
  12. **如何部署:** https://nacos.io/zh-cn/docs/quick-start.html
  13. 配置中心配置参考 /yaml
  14. **配置规则:** ${prefix}-${spring.profiles.active}.${file-extension}
  15. **详见:** https://nacos.io/zh-cn/docs/quick-start-spring-cloud.html
  16. **地址:** http://127.0.0.1:8848/nacos/#/login
  17. **用户名:** nacos **密码:** nacos
  18. 开发人员进行开发自测时,请使用以自己名字命名的namespace进行测试,不要使用dev或者test
  19. ### swagger
  20. 默认开启,若需要关闭,手动配置swagger.enabled: false
  21. **各模块swagger访问地址:** http://{IP}:{port}/doc.html
  22. **可通过swagger统一的网关访问地址:** http://{gateway IP}:{gateway port}/doc.html查看基于gateway路由配置的后台rest服务
  23. ### OAuth2
  24. 授权token获取样例:
  25. *POST* http://localhost:8866/oauth/token?grant_type=password&username=admin&client_id=dubhe-client&client_secret=dubhe-secret&password=123456&scope=all
  26. 请求资源时在header添加:
  27. Authorization: 'Bearer '+${access_token}
  28. 测试服务提供者配置中心动态获取配置样例:
  29. header 添加-> Authorization:'Bearer '+${access_token}
  30. *GET* http://localhost:8860/config/get
  31. 刷新token样例:
  32. *POST* http://localhost:8866/oauth/token?grant_type=refresh_token&client_id=dubhe-client&client_secret=dubhe-secret&scope=all&refresh_token=${refresh_token}
  33. ### Admin
  34. 登录接口
  35. ```$xslt
  36. url:
  37. *POST* http://localhost:8870/auth/login
  38. param:
  39. {"username":"admin","password":"RBb2Czac2HBI9XNj4ZLF1QcTytOe5pN1vHZHYuAVgSAPRcYbndn/4zGDxKdXS1j0sLsDsKZLUojEXFnYHpsKxA==","code":"jggg","uuid":"validate_codeea991a3cb8ea47cca05744a47ad17a37"}
  40. ```

一站式算法开发平台、高性能分布式深度学习框架、先进算法模型库、视觉模型炼知平台、数据可视化分析平台等一系列平台及工具,在模型高效分布式训练、数据处理和可视分析、模型炼知和轻量化等技术上形成独特优势,目前已在产学研等各领域近千家单位及个人提供AI应用赋能