Spring98 API Gateway (Application Programming Interface) 2021.07.21 - [Spring/Spring Cloud] - Spring Cloud 2021.07.21 - [Spring/Spring Cloud] - Netflix OSS 와 Spring Cloud 의 ecosystem 2021.07.21 - [Spring/Spring Cloud] - spring cloud eureka 2021.07.21 - [Spring/Spring Cloud] - Spring Cloud Gateway, Circuit Breaker and Hystrix with in Eureka 2021.07.21 - [Spring/Spring Cloud] - API Gateway (Application Programming Interface) 2021.07.21 - [Spring/Spring .. 2021. 7. 21. spring cloud eureka 2021.07.21 - [Spring/Spring Cloud] - Spring Cloud 2021.07.21 - [Spring/Spring Cloud] - Netflix OSS 와 Spring Cloud 의 ecosystem 2021.07.21 - [Spring/Spring Cloud] - spring cloud eureka 2021.07.21 - [Spring/Spring Cloud] - Spring Cloud Gateway, Circuit Breaker and Hystrix with in Eureka 2021.07.21 - [Spring/Spring Cloud] - API Gateway (Application Programming Interface) 2021.07.21 - [Spring/Spring .. 2021. 7. 21. Spring Cloud Gateway, Circuit Breaker and Hystrix with in Eureka 2021.07.21 - [Spring/Spring Cloud] - Spring Cloud 2021.07.21 - [Spring/Spring Cloud] - Netflix OSS 와 Spring Cloud 의 ecosystem 2021.07.21 - [Spring/Spring Cloud] - spring cloud eureka 2021.07.21 - [Spring/Spring Cloud] - Spring Cloud Gateway, Circuit Breaker and Hystrix with in Eureka 2021.07.21 - [Spring/Spring Cloud] - API Gateway (Application Programming Interface) 2021.07.21 - [Spring/Spring .. 2021. 7. 21. Netflix OSS 와 Spring Cloud 의 ecosystem 2021.07.21 - [Spring/Spring Cloud] - Spring Cloud 2021.07.21 - [Spring/Spring Cloud] - Netflix OSS 와 Spring Cloud 의 ecosystem 2021.07.21 - [Spring/Spring Cloud] - spring cloud eureka 2021.07.21 - [Spring/Spring Cloud] - Spring Cloud Gateway, Circuit Breaker and Hystrix with in Eureka 2021.07.21 - [Spring/Spring Cloud] - API Gateway (Application Programming Interface) 2021.07.21 - [Spring/Spring .. 2021. 7. 21. Spring Cloud 2021.07.21 - [Spring/Spring Cloud] - Spring Cloud 2021.07.21 - [Spring/Spring Cloud] - Netflix OSS 와 Spring Cloud 의 ecosystem 2021.07.21 - [Spring/Spring Cloud] - spring cloud eureka 2021.07.21 - [Spring/Spring Cloud] - Spring Cloud Gateway, Circuit Breaker and Hystrix with in Eureka 2021.07.21 - [Spring/Spring Cloud] - API Gateway (Application Programming Interface) 2021.07.21 - [Spring/Spring .. 2021. 7. 21. Connection is not available, request timed out after 10000ms. (Unable to acquire JDBC Connection) Connection is not available, request timed out after 10000ms. (Unable to acquire JDBC Connection) 장애 단서 커넥션이 존재하지 않아 요청시간이 10 초를 넘겨버려 발생됨 , 커넥션 풀을 할당 받지 못함 히카리 풀을 사용 중이며, spring boot 사용중임 확인해 볼것 Database config 설정 SHOW VARIABLES LIKE '%time%' 으로 데이터베이스의 타임아웃 환경 설정을 확인한다. ## 단위 : sec **wait_timeout 28800** net_read_timeout 120 connect_timeout 10MySQL 서버의 time out 설정은 크게 3가지가 있다. connect_t.. 2021. 7. 7. JPA Entity 상속 관계 만들기 ,@MappedSuperclass @MappedSuperclass 이용한 상속 JPA Entity 에서 상속관계를 만들기 위해서는 @MappedSuperclass 를 사용하여 상속 관계를 정의 할 수 있다. 최상위 Class로 Employee 를 생성하고, 해당 Class를 상속 받아 관계를 정의할 수 있다. 예제 ) @MappedSuperclass public class Employee { @Id protected Integer empId; @Version protected Integer version; @ManyToOne @JoinColumn(name="ADDR") protected Address address; public Integer getEmpId() { ... } public void setEmpId(Integer id) {.. 2021. 5. 25. Lombok @ToString , JPA 사용시 주의 사항 롬복을(lombok) 사용하면 참 편하다. 하지만 주의해야할 사항도 있다. @ToString 이용시 Object안에 순환참조가 걸릴경우 정상적으로 이용하지 못하는 경우가 생긴다. 이를 해결하기 위해서는 @ToString 이용시 연관관계에 있는 객체들의 순환참조를 끊어 주어야 한다. 특히나 Entity 를 RestAPI 에서 응답 모델로 사용할 경우에는 해당 문제가 더욱 두드러 진다. this is example @ToString(exclude = {"campaignEntity", "adsEntities"}, callSuper = true) exclude 속성을 이용하여, 순환참조가 걸리는 Object를 등록하여 사용한다. 2021. 5. 25. Intellij SNAPSHOT 파일 최신 적용 gradle 이나 maven, nexus를 이용하며, library를 관리 하게 되면, 라이브러리를 release 하기 전에 snspshot 파일로 사용한다. 이때 snapshot 파일이 최신파일로 적용이 잘 안될때가 있다. 이때 다음과 같은 옵션으로 사용하면 항상 최신 파일을 읽어 오도록 설정된다. gradle // changing 값을 true 로 지정한다. compile("media.report.library:media-report-library-model:${model_version}") { changing = true } maven build > build tool > maven > alwas update snapshots > check 2021. 5. 20. 이전 1 2 3 4 5 6 ··· 11 다음