파란하늘의 지식창고
article thumbnail
Spring Boot에서 Resilience4j 사용해보기
Study/Java 2021. 9. 9. 10:14

공부하면서 기록한 내용 Spring Boot와 Resilienct4j에 대한 내용만 살펴봄 Hystrix -> Resilience4j로 변경되는 이유 Netflix OSS 제품군의 다양한 프로젝트들을 Spring에서 사용하기 위해 Spring 진영에서는 Spring Cloud Netflix 프로젝트를 제공하였다. Netflix는 Hystrix, Ribbon, Turbine, Zuul과 같은 다양한 라이브러리를 공개하여 웹서비스의 장애 대응, 서비스 분산에 대한 좋은 대안들을 제시하였고 많이 쓰였다. 하지만 2018년에 Netflix가 ribbon, hytrix를 유지관리 모드 (maintenance mode, 새로운 기능을 추가하지 않고 버그 및 보안 문제만 수정)로 더 이상 개발하지 않는다고 발표하면서..

article thumbnail
Spring Boot Data Redis 사용해보기
Study/Java 2021. 6. 9. 14:48

Spring Boot 기반에서 Redis를 사용하는 방법 Spring Boot 2.5.0 기준으로 작성함 dependency 설정 org.springframework.boot spring-boot-starter-data-redis redis는 connectionFactory로 Lettuce와 Jedis 두 가지를 제공한다. default로 Lettuce를 제공하고 만약 Jedis를 사용하고 싶은 경우 아래처럼 설정하면 된다. org.springframework.boot spring-boot-starter-data-redis io.lettuce lettuce-core redis.clients jedis Bean 설정 Spring Boot의 RedisAutoConfiguration은 RedisTemplate..

Spring Boot 2.5 Release Notes
Study/Java 2021. 5. 26. 07:52

전체 Release Notes 목록은 이 곳에서 확인할 수 있습니다. https://luvstudy.tistory.com/tag/Release%20Notes Spring Boot 2.5 Release Notes spring-projects/spring-boot spring-projects/spring-boot Spring Boot. Contribute to spring-projects/spring-boot development by creating an account on GitHub. github.com Upgrading from Spring Boot 2.4 SQL Script DataSource Initialization 지원 schema.sql 및 data.sql script에 사용되는 근본적인 m..

Spring Reference Documentation 한글 번역
Study/Java 2021. 4. 13. 04:55

google이 번역을 참 잘해주긴 하지만 asciidoc으로 생성된 문서의 code tag가 있는 문장의 경우 code tag 부분은 번역을 하지 않으면서 번역이 깨지는 현상이 있다. code tag 영역을 번역하지 않는건 당연한 동작이지만 해당 tag의 위치가 깨지는 것 때문에 번역된 문장을 이해하기 힘든 경우가 많아 공부할 겸 간간히 구글 번역한 내용을 문서로 만들어두고 있다. 이후 문서 버전이 변경되는 경우 관리를 어떻게 할지는 아직 고민하지 않았지만 혹시 도움이 되는 경우가 있을까 싶어 이곳에 공유해본다. 번역해둔 챕터는 현재 아래와 같다. Spring Framework Testing Spring Boot Logging Testing luversof.github.io/bluesky-docs/ Bl..

Spring Boot Logging
Study/Java 2021. 1. 4. 11:07

Spring Boot Reference의 Logging 부분을 번역한 글입니다. 4. Logging Spring Boot Features Spring Boot Features Graceful shutdown is supported with all four embedded web servers (Jetty, Reactor Netty, Tomcat, and Undertow) and with both reactive and Servlet-based web applications. It occurs as part of closing the application context and is performed in the earliest docs.spring.io Spring Boot는 모든 내부 logging에 C..

Spring Boot Config Data Migration Guide
Study/Java 2020. 11. 18. 07:53

Spring Boot Config Data Migration Guide Spring Boot Config Data Migration Guide의 내용을 한글로 번역한 글입니다. spring-projects/spring-boot spring-projects/spring-boot Spring Boot. Contribute to spring-projects/spring-boot development by creating an account on GitHub. github.com 이 문서는 Spring Boot 2.4 이상에서 사용하기 위해 application.properties 및 application.yml 파일을 migration 하는데 도움을 주기 위한 것입니다. Overview Spring Boot ..

Spring Boot 2.4 Release Notes
Study/Java 2020. 11. 14. 03:23

전체 Release Notes 목록은 이 곳에서 확인할 수 있습니다. https://luvstudy.tistory.com/tag/Release%20Notes Spring Boot 2.4 Release Notes Spring Boot 2.4 Release Note의 내용을 한글로 번역한 글입니다. spring-projects/spring-boot spring-projects/spring-boot Spring Boot. Contribute to spring-projects/spring-boot development by creating an account on GitHub. github.com Upgrading from Spring Boot 2.3 Versioning Scheme change 2.4부터 Sp..

Spring Boot @ConditionalOnBean 조건 사용 시 주의해야할 점
Study/Java 2020. 10. 22. 09:35

AutoConfiguration bean 생성 순서에 따른 @ConditionalOnBean 조건 오류 문제 아래와 같은 경우가 있었다. @Configuration public class SampleAAutoConfiguration { @Bean public SomeAClass SomeAClass() { return new SomeAClass(); } } @Configuration public class SampleBAutoConfiguration { @Bean @ConditionalOnBean(SomeAClass.class) public SomeBClass someBClass() { return new SomeBClass(); } } 코드 상으로 보면 SampleBConfiguration의 SomeAC..