Skip to content

humblem2/msa-springcloud-java-springboot-maven-properties

Repository files navigation

About codes with remote reposirtory as config-server

This is description of msa-springcloud-java-springboot-maven-properties(MSA Skeleton using spring cloud project extends OSS Netflix) for SHARE CONTACT Project (based on MSA Skeleton) by humblem2(backend developer/deeplearning engineer). And Also Project is maded with whdms705(backend developer). Thanks to whdms705 and Jiyoung9310(frontend developer).

SW Side:

  • Springboot Application Runnable JAR
  • Using Embed WAS and Build/Package/runnable jar Servlet Engine: Apache Tomcat/8.5.4, Apache Tomcat/8.5.31
  • Springboot version: Springboot : 1.4.0.RELEASE Springboot : 2.0.2.RELEASE
  • Spring Core version: Spring core 4.3.2.RELEASE
  • JDK: 1.8
  • Mybatis: 3.4.2
  • Mysql: Local(Windows) : community-5.7.11.0 Server(Linux) :
  • Maven : 3.3.9
  • External remote reposirtory as config-server(public repository)

HW Side:

  • On cloud server(using AWS stack)
  • Build/Deploy Automation using Github, Travis, AWS S3, AWS CodeDeploy for
  • Travis(travis.com)
  • AWS EC2(t2.micro Ubuntu14 [2018. 08. 26], m4.large[2018 .08. 27]) Code Deploy S3
  • Now, Every Server disk HAVING profile(s) related in Build/Deploy Automation.
  • Now, Every project directory HAVING profile(s) related in Build/Deploy Automation.

Run Configuration Enviroments:

  • Local Develop: dev
  • AWS Server Develop: beta
  • AWS Server Product: real

Services(5EA micro services):

  • API Gateway Proxy Server(Edge server;Zuul Server;Gateway) - Routing(Proxying) and L4 Loadbalancing(RR)(9999)
  • Config Server(Config server)(8888)
  • Dicovery and Register Server(Eureka Server)(8761)
  • Normal Server(Frontend Server)(8000)(8002)
  • Data Access Server(Backend Server with Swagger) connected RDB(mysql) using mapper(Mybatis)(8787)(Swagger - http://${HOST}:8787/swagger-ui.html)
  • Config Remote Repositorythis(private version. only authorized member) or this(public version)

Logging

  • Logger is Logback
  • Directory Policy:

k-10

Set Run Configurations

  • way1 : You must be setting VM arguments on your IDE when it comes to run Right click on project > Run As > Run Configurations... > update VM arguments belows

e.g.

-Dspring.profiles.active=dev
-Dserver.port=8761
-Dignore-noverify
  • way2 : Modify main class > define profile using setDefaultProfiles() method

Architecture diagram

architecture

Available URL:

Reference(really thanks to..)