# new-springcloud **Repository Path**: lightmoney/new-springcloud ## Basic Information - **Project Name**: new-springcloud - **Description**: No description available - **Primary Language**: Java - **License**: Not specified - **Default Branch**: new - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-06-04 - **Last Updated**: 2022-04-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 采用springboot 2.1.0 release springcloud Greenwich.release uaa-service(可以登录获取token,携带token访问不登录) 和user-service是使用 spring security oauth2和jwt的登录demo (负责授权) (作为资源服务器) 该方式的优点:一次获取token 多次使用 无需每次都请求授权服务 缺点:如果token没有过期,就一直可以使用(即使用户权限发生变化)(需要根据具体业务场景设置过期时间) 前端 后端 登录(用户密码) 用秘钥创建jwt(返回给前端) 在header中添加jwt 检查jwt解密,获取用户信息(给客户端响应) admin-client 和admin-server 安全监控admin demo config-client和config-sever 配置中心demo consul需下载jar运行 consul-config 为consul作为配置中心时 客户端服务的配置demo consul-consumer和consul-provider 为consul作为注册中心时服务消费和提供方配置demo gateway为网关配置demo sleuth-client-one 和sleuth-client-two 为sleuth 和zipkin 链路追踪 dashboard-feign dashboard-ribbon 为hystrix熔断监控 面板 turbine-client 服务为聚合dashboard 的服务