Spring 썸네일형 리스트형 Spring quartz와 application context Spring quartz의 life-cycle은 Spring과 별개의 level에서 동작하기에 spring context를 읽을 수 없다. 즉, Annotation 기반의 Dependency Injection이 안된다는 의미. (Job 한정인지 찾아보기) 이를 해결하기 위한 험난한 과정이 펼쳐지게 되는데.. (내용 추가 예정) 참고 링크 https://www.candidjava.com/spring-boot/quartz-example/ Spring boot quartz scheduler example | Candidjava Spring boot quartz scheduler example offers several conveniences for working with the Quartz scheduler,.. 더보기 Spring, @Component vs @Service Component vs service 스프링에서 컴포넌트 스캔 대상임을 알리기 위한 어노테이션으로 @Component, @Service, @Controller, @Repository 등을 사용한다. 이들 간의 역할은 생각보다는 별 차이가 없다. { Spring provides further stereotype annotations: @Component, @Service, and @Controller. @Component is a generic stereotype for any Spring-managed component. @Repository, @Service, and @Controller are specializations of @Component for more specific use cases, f.. 더보기 Spring eureka - auto scaling issue Issue eureka auto scaling 작업 과정 원하는 컨테이너가 실행중인 인스턴스 이미지 저장 해당 이미지를 기반으로 템플릿 작성 위 템플릿 기반으로 auto scaling 그룹 생성 문제 원본 EC2에 문제가 생길 경우 사본도 원본 EC2의 eureka를 보기 때문에 정상 작동하지 않음 주소 참조의 경우 s3 bucket에서 값을 읽어오기 때문에 유동적이지 않다. 해결 eureka를 볼 때 고정ip가 아닌 ELB의 도메인 주소로 찾는다 문제2 최초 실행 시 ELB에서 Inservice가 없기에 실행이 되지 않음 뮨재2 상세 환경변수에서 전부 수정하였으나 config s3 bucket에서 eureka 주소가 박혀있어서 원하는대로 동작하지 않음. 만약 환경변수나 bucket의 경로를 ELB 도메.. 더보기 이전 1 다음