Giter Club home page Giter Club logo

vole's Introduction

ASF2

Vole

Vole 是一个基于最新的SpringCloud2.0的微服务商业开发脚手架->(非教学版),支持公司全方位应用架构搭建

Features

  • 基于Eureka的服务管理
  • 基于Spring-Cloud-Config的配置管理
  • 基于Spring-Oauth2的jwt鉴权服务
  • 基于Zuul的网关服务
  • 基于Elastic-Job的分布式job
  • 基于ShardingSphere的分库分表
  • 基于SpringAdmin的监控服务
  • 基于Zipkin的链路监控服务
  • 基于SpringCloudStream的消息驱动
  • 基于SpringSecurity的cookie的sso统一登陆服务
  • 支持分布式后台portal统一服务
  • 支持网关的动态配置和流量控制
  • 支持SpringSession的session管理
  • 支持Redis的数据服务缓存
  • 支持Hystrix的服务熔断管理
  • 支持swagger2的api管理
  • 支持Kafka,RabbitMQ,Rocketmq的消息接入
  • 支持Spring-Oauth2的sso
  • 支持Spring-Security的cas客户端
  • 支持FastDfs的客户端

Docker

使用 docker-compose 部署Docker镜像

架构

组件

vole由eureka, auth,config,gateway,mps,passport,portal,modules组成

Eureka

Eureka服务发现管理,支持高可用配置更多

Auth

Spring Oauth2鉴权管理支持jwt鉴权更多

Config

Spring config的配置服务管理更多

Gateway

Zuul的网关服务,支持动态配置网关更多

Mps

会员管理中心更多

Passport

后台统一登陆管理更多

Portal

后台管理中心更多

Modules

相关任务,消息,监控等组件更多

交流方式-微信

vole's People

Contributors

f497196689 avatar gavenwangcn avatar masterga avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vole's Issues

Gateway启动报错

导入数据库后,按顺序启动了 eureka, config ,Auth ,passport, portal 等服务之后再启动gateway报错。
内容如下:

06-30 17:08:11.337 ERROR [org.springframework.boot.SpringApplication] - Application run failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfiguration': Unsatisfied dependency expressed through field 'tokenStore'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jwtTokenStore' defined in class path resource [org/springframework/boot/autoconfigure/security/oauth2/resource/ResourceServerTokenServicesConfiguration$JwtTokenServicesConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.security.oauth2.provider.token.TokenStore]: Factory method 'jwtTokenStore' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jwtTokenEnhancer' defined in class path resource [org/springframework/boot/autoconfigure/security/oauth2/resource/ResourceServerTokenServicesConfiguration$JwtTokenServicesConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.security.oauth2.provider.token.store.JwtAccessTokenConverter]: Factory method 'jwtTokenEnhancer' threw exception; nested exception is org.springframework.web.client.RestClientException: Could not extract response: no suitable HttpMessageConverter found for response type [interface java.util.Map] and content type [text/html;charset=UTF-8]

请问是有服务没重启导致token获取失败吗 ?

[Err] 1273 - Unknown collation: 'utf8mb4_0900_ai_ci'

在mysql5.7.23 上执行docs/db/vole.sql 会报错[Err] 1273 - Unknown collation: 'utf8mb4_0900_ai_ci'
查阅资料发现mysql8.0 开始默认的CHARSET改为utf8mb4,并且默认的COLLATE也改为了utf8mb4_0900_ai_ci,就想问下大家都已经开始使用mysql8了么?

请问这里生效了吗?

/**
 * tokenstore 定制化处理
 *
 * @return TokenStore
 * 1. 如果使用的 redis-cluster 模式请使用 VoleRedisTokenStore
 * VoleRedisTokenStore tokenStore = new VoleRedisTokenStore();
 * tokenStore.setRedisTemplate(redisTemplate);
 */
@Bean
public TokenStore redisTokenStore() {
    //VoleRedisTokenStore tokenStore = new VoleRedisTokenStore(redisConnectionFactory);
    //tokenStore.setPrefix(SecurityConstants.VOLE_PREFIX);
    VoleRedisTokenStore tokenStore = new VoleRedisTokenStore();
    tokenStore.setRedisTemplate(redisTemplate(redisConnectionFactory));
    return tokenStore;
}

vole-mq-dev.yml配置项错误

spring: 
   producer:
      key-serializer: org.apache.kafka.common.serialization.StringDeserializer

不对应,要么键值全是序列化,要么是都是反序列化。
key-deserializer: org.apache.kafka.common.serialization.StringDeserializer

使用说明大概什么时候能好呢?

简单看了下 ,很喜欢,一直想自己搭建一套项目但是没有好的开源 ,在公司也一直写业务代码没什么意思,很期待你补全所有的交流信息

vole-gateway-dev.yml 权限配置错误?

ignore:
urls:
- /authentication/**
- /css/.css
- /js/
.js
- /actuator/**
- /hystrix/**
- /metrics/**
- /loggers/**
- /mobile/cookie
鉴权服务器 在/auth ,那边边界网关 如何访问到 后面服务???
感觉要新增
/auth/oauth/* 获取权限,

非官方简单说明

基于idea 操作,
修改redis ip、 修改 mysql 配置,mysql 5.7 数据库建立两个用户portal 、 vole ,并导入对应sql文件。

打包root的vole,跳过测试

vole(root) :clean compile package install ,

启动顺序,

eureka > config > auth > cas client > portal-data > mps > passport > portal > gateway 。
eureka 显示如下:
2019-08-12 13-57-23 的屏幕截图

Application AMIs Availability Zones Status
VOLE-AUTH n/a (1) (1) UP (1) - RUC:vole-auth:7001
VOLE-CASCLIENT-SERVICE n/a (1) (1) UP (1) - RUC:vole-casclient-service:8998
VOLE-CONFIG-SERVER n/a (1) (1) UP (1) - RUC:vole-config-server:4001
VOLE-GATEWAY n/a (1) (1) UP (1) - RUC:vole-gateway:9999
VOLE-MPS n/a (1) (1) UP (1) - RUC:vole-mps:6001
VOLE-PASSPORT n/a (1) (1) UP (1) - RUC:vole-passport:7007
VOLE-PORTAL n/a (1) (1) UP (1) - RUC:vole-portal:7008
VOLE-PORTAL-DATA n/a (1) (1) UP (1) - RUC:vole-portal-data:7009

最后gateway可以成功启动。

登录说明

passport只有登录页面,不能从这个模块登录,
portal是统一用户管理平台,从这里http://{本地ip}:{VOLE-PORTAL的端口} 登录:用户名xialaokou 密码 123456`.
登录调用的passport的服务,
统一用户管理平台的系统、角色、菜单、用户管理是portal里面的controller处理的。

2019-08-12 13-57-31 的屏幕截图

暂时到这里吧,大家一起慢慢研究。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.