Skip to content
Spring Boot 微服务模板,基于持续交付的思想,用于快速构建可持续交付的微服务。
Java Dockerfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config/checkstyle
dockerized
gradle/wrapper
src
tasks
.editorconfig
.gitattributes
.gitignore
Dockerfile
LICENSE
README.md
build.gradle
gradlew
gradlew.bat
settings.gradle

README.md

Spring Boot MicroService Template

  • 技术栈
  • 代码规范
  • 配置管理
  • 测试策略
  • 应用层
  • 数据管理
  • 集成策略
  • 安全策略
  • 持续交付
  • 运维监控

技术栈:

  • spring boot
  • spring cloud
  • spring security
  • mysql
  • flyway
  • mybatis
  • docker/variant
  • git ...

代码规范:

  • Checkstyle/PMD/FindBugs/AlibabaJavaCodingGuidelines
  • EditorConfig
  • SonarQube
  • API Normalize

配置管理:

  • Version Control System:Git
  • Build Tool:Gradle
  • Config Management:application.yml
  • Env Management: Vagrant/Docker
    • memory size setup
    • network port link
    • database link
    • related to the envrionment configuration

测试策略:

  • Unit Test
  • Component Test
  • Api Test
  • Test Coverage
  • Contract Test
  • Integration Test
  • Performance Test
  • Test Coverage

应用层

  • DDD Tactics
  • DIP(Spring Container)
  • AOP(Spring AOP)
  • ORM(mybatis)
  • Asnyc
  • Transactional Management
  • DSL
  • API Design: RESTfuls(Idempotent, Error Handling, etc.)

数据管理

  • Migration: Database schema management: flyway
  • Database: RDBMS
  • Message: Kafaka
  • Cache: Redis、Spring Cache

集成策略

  • API Semantic Versioning
  • Event Driven
  • Service Discovery/Register
  • Service Fallback: Hystrix
  • Load Balance: Ribbon
  • API Call: Feign ....

安全策略

  • Auth: session management、Json web token
  • Permission: Data permission、Feature permission
  • Security: CORS、XSS、SQL Inject ...

持续交付:

  • Pipeline: GoCD/Jenkins(pipeline as code)
  • Containeize: Docker
  • Container Scheduling and Management: Kubernetes、Docker Compose
  • Container management platform: Rancher ...

运维监控

  • APM: APP Dynamic、Pinpoint、Grafana、Prometheus、Zipkin
  • Logging System: EFK
  • Cerebro

...

You can’t perform that action at this time.