Coder Social home page Coder Social logo

xuyaohui / spring-cloud-cli Goto Github PK

View Code? Open in Web Editor NEW
371.0 17.0 161.0 1.46 MB

基于Spring Cloud实现微服务前后端系统

Java 39.01% CSS 4.13% HTML 22.55% JavaScript 15.28% Dockerfile 0.06% FreeMarker 3.01% Vue 14.58% SCSS 1.37%
springcloud springboot shiro jwt vue

spring-cloud-cli's Introduction

SpringCloud 脚手架

架构升级,基于spring cloud alibaba版实现 链接:https://github.com/xuyaohui/cloud_scaffold_code/tree/master

简易教程

https://blog.csdn.net/u014271612/article/details/82866913

项目架构图

image

所使用相关技术:

注册中心:Spring Cloud Eureka

网关中心:Spring Cloud Zuul

服务配置:Spring Cloud Config

链路追踪:Spring Cloud Zipkin

数据库连接:Druid、Mybatis

服务鉴权:Shiro+JWT

数据库:PostgreSQL

日志收集:ELK(服务安装在虚拟机)

服务之间调用: Feign

熔断机制:Hystrix

消息队列:RabbitMQ

系统各模块介绍

cloud-ida:项目父模块,所有以下子模块依赖该父模块(可在该pom文件加入所需要的依赖)

cloud-ida-admin : 后台管理模块(包含前后端),包括用户、角色、权限管理及服务监控

cloud-ida-admin-server : 使用springboot admin,监控各服务运行状况

cloud-ida-common : common模块,封装模块常用bean及工具类

cloud-ida-config : 分布式配置中心,可将各模块所需的配置放到该中心(dev/uat/pro)

cloud-ida-eureka : 服务发现、注册中心

cloud-ida-service : 业务服务模块(可按业务拆分成多个服务)

cloud-ida-zipkin : 服务链路追踪

cloud-ida-zuul : 微服务网关层,所有请求都经过网关请求,此模块中也有shiro认证、鉴权

未完待续...

占用的端口

cloud-ida-admin: 9000

cloud-ida-admin-server: 9010

cloud-ida-config : 8888

cloud-ida-eureka : 8761

cloud-ida-service-tag : 8087

cloud-ida-zipkin : 9411

cloud-ida-zuul : 9084

如何运行该系统?

  • 保证各服务模块使用的端口未被占用
  • 根据表模型创建库(如cloud-ida)、表,并插入相应的测试数据
  •   配置各模块设置数据库的url、用户名和密码,可通过全局搜索"jdbc:postgresql",替换成自己的配置
  •   启动顺序:cloud-ida-eureka->cloud-ida-config->cloud-ida-admin server->cloud-ida-admin->cloud-ida-service->cloud-ida-zuul->cloud-ida-zipkin
  •   各模块使用springboot创建,找到个服务对用的application,运行main函数即可,如cloud-ida-zuul的application为CloudDockerZuulApplication
  • 启动vue前端,切换到vue-front目录下,运行cnpm run dev(事先安装node.js、cnpm、vue)

系统体验

系统截图

后台管理系统截图 image

后端赋权

image

服务监控

image

vue登录界面

image

vue前端测试界面

image

spring-cloud-cli's People

Contributors

sxdtzhaoxinguo avatar xuyaohui 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

spring-cloud-cli's Issues

想明白些问题

大佬,想去了解你这个项目并提一些疑问,可否加个联系方式,本人qq:846445745 wx:18397779379

rabbitMQ项目起不来

org.springframework.amqp.rabbit.listener.BlockingQueueConsumer$DeclarationException: Failed to declare queue(s):[DIRECT_QUEUE]

Caused by: com.rabbitmq.client.ShutdownSignalException: channel error; protocol method: #method<channel.close>(reply-code=404, reply-text=NOT_FOUND - no queue 'DIRECT_QUEUE' in vh

ZuulApplication Bug

运行 CloudDockerZuulApplication 时,报错: 如何解决?

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'factory': FactoryBean threw exception on object creation; nested exception is java.lang.NullPointerException: chainDefinition cannot be null or empty.
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:185) ~[spring-beans-4.3.17.RELEASE.jar:4.3.17.RELEASE]
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:103) ~[spring-beans-4.3.17.RELEASE.jar:4.3.17.RELEASE]

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.