All Projects → melthaw → spring-cloud-boilerplate

melthaw / spring-cloud-boilerplate

Licence: Apache-2.0 license
The discovery & gateway boilerplate based on spring-cloud with spring security.

Programming Languages

java
68154 projects - #9 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to spring-cloud-boilerplate

spring-microservices-in-action
The source code of the book "Spring Microservices in Action (John Carnell)" and the personal summary of technical essentials about Spring Boot for microservices.
Stars: ✭ 54 (+350%)
Mutual labels:  netflix-zuul, netflix-eureka, netflix-hystrix, netflix-ribbon, netflix-oss
Spring Cloud Netflix
Integration with Netflix OSS components
Stars: ✭ 4,498 (+37383.33%)
Mutual labels:  spring-cloud, netflix-zuul, netflix-eureka, netflix-hystrix
cloud-native-pwas
Cloud Native Progressive Web Apps with Spring Boot and Angular
Stars: ✭ 31 (+158.33%)
Mutual labels:  spring-cloud, netflix-zuul, netflix-eureka
zainabed-spring-security-jwt
Authentication & Authorization module for standalone Spring Boot app or Spring Cloud applications
Stars: ✭ 24 (+100%)
Mutual labels:  spring-cloud, spring-security
Sample Spring Oauth2 Microservices
some examples that show basic and more advanced implementations of oauth2 authorization mechanism in spring-cloud microservices environment
Stars: ✭ 109 (+808.33%)
Mutual labels:  spring-cloud, spring-security
Spring Cloud Flycloud
🔥🔥🔥FlyClould 微服务实战项目框架,在该框架中,包括了用 Spring Cloud 构建微服务的一系列基本组件和框架,对于后台服务框架的搭建有很大的参考价值,大家可以参考甚至稍加修改可以直接应用于自己的实际的项目开发中,该项目没有采用Maven进行项目构建,Maven通过xml进行依赖管理,导致整个配置文件太过臃肿,另外灵活性也不是很强,所以我采用Gradle进行项目构建和依赖管理,在FlyTour项目中我们见证了Gradle的强大,通过简单的一些配置就可以轻松的实现组件化的功能。该项目共有11个Module工程。其中10个位微服务工程,这10个微服务工程构成了一个完整的微服务系统,微服务系统包含了8个基础服务,提供了一整套微服务治理功能,他们分别是配置中心module_c…
Stars: ✭ 1,514 (+12516.67%)
Mutual labels:  spring-cloud, spring-security
Simplemall
基于SpringCloud的微服务架构实战案例项目,以一个简单的购物流程为示例,融合spring cloud 相关组件,如spring-cloud-netflix、swagger等
Stars: ✭ 687 (+5625%)
Mutual labels:  spring-cloud, spring-security
Cloud Book
《Spring Cloud 微服务架构进阶》各章节附录源码
Stars: ✭ 142 (+1083.33%)
Mutual labels:  spring-cloud, spring-security
Jiiiiiin Security
一个前后端分离的内管基础项目
Stars: ✭ 132 (+1000%)
Mutual labels:  spring-cloud, spring-security
Javadevjournal
Source code for the tutorials published on the Javadevjournal site.
Stars: ✭ 141 (+1075%)
Mutual labels:  spring-cloud, spring-security
JavaFamily
【Java面试+Java学习指南】 一份涵盖大部分Java程序员所需要掌握的核心知识。
Stars: ✭ 517 (+4208.33%)
Mutual labels:  spring-cloud, spring-security
Spring Cloud Study
spring-cloud学习
Stars: ✭ 108 (+800%)
Mutual labels:  spring-cloud, spring-security
Mall
mall项目是一套电商系统,包括前台商城系统及后台管理系统,基于SpringBoot+MyBatis实现,采用Docker容器化部署。 前台商城系统包含首页门户、商品推荐、商品搜索、商品展示、购物车、订单流程、会员中心、客户服务、帮助中心等模块。 后台管理系统包含商品管理、订单管理、会员管理、促销管理、运营管理、内容管理、统计报表、财务管理、权限管理、设置等模块。
Stars: ✭ 54,797 (+456541.67%)
Mutual labels:  spring-cloud, spring-security
Learning Path Spring Boot Microservices
Curated path for learning Spring Boot & Microservices based on published videos in TechPrimers
Stars: ✭ 116 (+866.67%)
Mutual labels:  spring-cloud, spring-security
Sample Boot Micro
Spring Cloud + Gradle Multi Project + Java8
Stars: ✭ 72 (+500%)
Mutual labels:  spring-cloud, spring-security
Mi S
基于SpringBoot+SpringCloud+Mybatis主流框架搭建的分布式敏捷开发系统架构,为中、小型项目打造企业级基础开发多种解决方案。
Stars: ✭ 140 (+1066.67%)
Mutual labels:  spring-cloud, spring-security
Mcloud
基于Spring Cloud,实现微服务中常用的基础模块,包括 OAuth2 认证服务,统一注册中心,系统监控中心, 统一配置中心,API网关以及熔断器
Stars: ✭ 185 (+1441.67%)
Mutual labels:  spring-cloud, spring-security
Awesome Spring
A curated list of awesome books, tutorials, courses, and resources for the Spring framework ecosystem.
Stars: ✭ 186 (+1450%)
Mutual labels:  spring-cloud, spring-security
workshop-microservices
Treinamento voltado para arquitetos de software, líderes de equipe, desenvolvedores em geral...
Stars: ✭ 21 (+75%)
Mutual labels:  spring-cloud, netflix-oss
Taroco
整合Nacos、Spring Cloud Alibaba,提供了一系列starter组件, 同时提供服务治理、服务监控、OAuth2权限认证,支持服务降级/熔断、服务权重,前端采用vue+elementUI+webpack,可以很好的解决转向Spring Cloud的一系列问题。
Stars: ✭ 545 (+4441.67%)
Mutual labels:  spring-cloud, spring-security

Overview

The boilerplate for spring cloud with following feature enabled

feature implementation version
discovery eureka Dalston.SR1
gateway zuul Dalston.SR1

Please check out gradle/dependencies.gradle

Get Started

Please make sure Java , Gradle & Docker are ready on your dev machine.

env version
Java 1.8.x
Gradle 2.14.x
Docker 17.x
Docker Compose 1.16.*

Build

gradle clean build
docker-compose build

Start

docker-compose up -d

Stop

docker-compose down

Configuration

discovery

  • gradle

discovery/build.gradle

buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}"
    }
}

apply plugin: "io.spring.dependency-management"
apply plugin: 'org.springframework.boot'

dependencyManagement {
    imports {
        mavenBom "org.springframework.cloud:spring-cloud-starter-parent:${springCloudVersion}"
        mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
    }
}

dependencies {
    compile "org.springframework.cloud:spring-cloud-starter-eureka-server"
}

  • spring boot - bootstrap.yml

discovery/src/main/resources/bootstrap.yml

spring:
  application:
    name: discovery
  • spring boot - application.yml

discovery/src/main/resources/application.yml

server:
  port: 8761

eureka:
  instance:
    hostname: localhost
  server:
    enable-self-preservation: false
    eviction-interval-timer-in-ms: 60000
  client:
    registerWithEureka: false
    fetchRegistry: false
    serviceUrl:
      defaultZone: http://${eureka.instance.hostname}:${server.port}/eureka/

gateway

  • gradle

gateway/build.gradle

buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}"
    }
}

apply plugin: "io.spring.dependency-management"
apply plugin: 'org.springframework.boot'

dependencyManagement {
    imports {
        mavenBom "org.springframework.cloud:spring-cloud-starter-parent:${springCloudVersion}"
        mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
    }
}

dependencies {
    compile "org.springframework.cloud:spring-cloud-starter-eureka"
    compile "org.springframework.cloud:spring-cloud-starter-zuul"

    testCompile "org.springframework.boot:spring-boot-starter-test"
}

  • spring boot - bootstrap.yml

gateway/src/main/resources/bootstrap.yml

spring:
  application:
    name: gateway
  • spring boot - application.yml

gateway/src/main/resources/application.yml

server:
  port: 10000

eureka:
  instance:
    hostname: ${EUREKA_INSTANCE_HOST:localhost}
    non-secure-port: ${EUREKA_INSTANCE_PORT:10000}
    prefer-ip-address: false
#    instance-id: ${spring.application.name}:${eureka.instance.hostname}:${eureka.instance.non-secure-port}:${random.value}
  client:
    registerWithEureka: false
    fetchRegistry: true
    serviceUrl:
       defaultZone: ${EUREKA_SERVICE_URL:'http://localhost:8761/eureka/'}

Customization

TODO

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].