전자정부 4.0 개발환경 구축 MSA 교육자료 환경 셋팅 (1편)
기본 적인 부분은 넘기면서 기록을 남겨야 할 것 같다.. 시간이 촉박하다.. 전자정부에 MSA 으로 구축 된 샘플이 있다고 하여, 개발환경을 구축 하고자 한다. 이미 전자정부 사이트에 좋은 교육자
devlop.tistory.com
1편에 이어서 2편 시자 ㄱㄱ
2편은 교육자료 중 02.MSA템플릿_백엔드구성및실습.pdf 보면서 문제가 있었던 부분을 정리 해야지...
1. 전자정부 다운 ( 또 다운해?? 하라는 대로 하자..)
1편에서 다운 받은 eGovFrame-4.0.0-Win-64bit.exe이거는무시하자
글쓴일 기준 개발자용 개발환경 64bit(Implementation Tool) Version 4.1.0 버전을 다운 받았음
https://www.egovframe.go.kr/home/sub.do?menuNo=94
개발환경 - 4.x 다운로드 | 표준프레임워크 포털 eGovFrame
처리중입니다. 잠시만 기다려주십시오.
www.egovframe.go.kr
Step 1-2-10. Gradle Tasks 에서 portal-service>other>compileQuerydsl
을 더블클릭 또는 우클릭 후 Run Gradle Tasks 를 클릭하면 build 가
시작된다.
전자정부 4.1 버전에는 compileQuerydsl 보이지 않는다. 대신 querydsl > cleanQuerydslSo 클릭 완료 후 initQuerydslSour 클릭
Step 1-2-14. Source Folder Selection 창이 열리면 build>generated>querydsl 을 체크하고 OK 버튼을 클릭한다.
이렇게 진행 하면 빨간 오류가 사라진다고 했으나..... 사라지지 않았음
다시.. 그래들 build > build 진행 하니 빨간피 사라짐
빨피는 모두 사라졌다.. 이제 APIGATEWAY spring profile 설정 후 서버 시작.. 또 오류 발생
Error creating bean with name 'reactiveAuthorization': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'token.secret' in value "${token.secret}"
token.seceet 오류??
user-service 부터 기동 해야하나?
name 'messageSourceConfig': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'messages.directory' in value "${messages.directory}"
오류 발생
application.yml 젤 하단에
messages:
directory: test
추가 후 서버실행
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
오류발생 실화임?
재부팅하니까 해결 되었다..... ;;;;
서버 실행 시 순서는 상관이 있는것 같다.
config > discovery > gateway 순으로 실행 시켜주었다.
API 테스를 하기 위해, http://localhost:8000/webjars/swagger-ui/index.html
접근하여 테스트를 진행 해도록 하자
여기까지 문제 없이 API 호출까지 정상작동 하였다.
3편에서는 Front 셋팅을 진행 해보겠습니다.
'개발 > 전자정부' 카테고리의 다른 글
전자정부 4.0 개발환경 구축 MSA 교육자료 환경 셋팅 (1편) (0) | 2023.04.07 |
---|