Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

설정 서버가 띄워질 포트와 , 설정저장소를 지정합니다.

설정 서버의 셋팅 리소스로 깃을 지정합니다. Git Pull 명령을 주기적으로 날려서

설정의 추가/삭제등을 Config 서버가 감지 가능합니다. 

어플리케이션

Code Block
languagejava
themeEmacs
titleapplication.properties
spring.application.name=front-web
spring.cloud.config.uri=http://localhost:8888

...

spring.application.name=lobbyapi
spring.cloud.config.uri=http://localhost:8888

설정은 원격지에 있으나,원격지 설정을 찾기위해 위 두가지는 로컬에서 파일혹은 전달인자로 필수로 지정해줘야하는 설정입니다. 

설정서버 로그

Panel

2018-12-02 22:25:04.647 INFO 12212 --- [nio-8888-exec-3] o.s.c.c.s.e.NativeEnvironmentRepository : Adding property source: file:/C:/Users/psmon/AppData/Local/Temp/config-repo-3303566354724094937/application.yml (document #0)
2018-12-02 22:34:53.862 INFO 12212 --- [nio-8888-exec-5] .c.s.e.MultipleJGitEnvironmentRepository : Fetched for remote master and found 1 updates
2018-12-02 22:34:54.559 INFO 12212 --- [nio-8888-exec-5] o.s.c.c.s.e.NativeEnvironmentRepository : Adding property source: file:/C:/Users/psmon/AppData/Local/Temp/config-repo-3303566354724094937/gameapi.yml (document #1)
2018-12-02 22:34:54.560 INFO 12212 --- [nio-8888-exec-5] o.s.c.c.s.e.NativeEnvironmentRepository : Adding property source: file:/C:/Users/psmon/AppData/Local/Temp/config-repo-3303566354724094937/application.yml (document #1)
2018-12-02 22:34:54.561 INFO 12212 --- [nio-8888-exec-5] o.s.c.c.s.e.NativeEnvironmentRepository : Adding property source: file:/C:/Users/psmon/AppData/Local/Temp/config-repo-3303566354724094937/gameapi.yml (document #0)
2018-12-02 22:34:54.562 INFO 12212 --- [nio-8888-exec-5] o.s.c.c.s.e.NativeEnvironmentRepository : Adding property source: file:/C:/Users/psmon/AppData/Local/Temp/config-repo-3303566354724094937/application.yml (document #0)
2018-12-02 22:38:32.787 INFO 12212 --- [nio-8888-exec-7] o.s.c.c.s.e.NativeEnvironmentRepository : Adding property source: file:/C:/Users/psmon/AppData/Local/Temp/config-repo-3303566354724094937/accountapi.yml (document #0)
2018-12-02 22:38:32.788 INFO 12212 --- [nio-8888-exec-7] o.s.c.c.s.e.NativeEnvironmentRepository : Adding property source: file:/C:/Users/psmon/AppData/Local/Temp/config-repo-3303566354724094937/application.yml (document #0)
2018-12-02 22:41:03.311 INFO 12212 --- [nio-8888-exec-9] o.s.c.c.s.e.NativeEnvironmentRepository : Adding property source: file:/C:/Users/psmon/AppData/Local/Temp/config-repo-3303566354724094937/accountapi.yml (document #0)
2018-12-02 22:41:03.312 INFO 12212 --- [nio-8888-exec-9] o.s.c.c.s.e.NativeEnvironmentRepository : Adding property source: file:/C:/Users/psmon/AppData/Local/Temp/config-repo-3303566354724094937/application.yml (document #0)

설정서버가 Git Module이 내장되어 있어서, 중앙 설정파일의 변경처리를 유연하게 해줍니다. 똑똑한 녀석입니다.

그외

이것은 스테이징/운영에서도 이점이 있지만 로컬개발환경에서 다음과같은 이점이 있을수 있습니다.

...