파란하늘의 지식창고
Spring Boot 3.0 Migration Guide
Study/Java 2022. 11. 28. 17:57

https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0-Migration-Guide 3 revision 기준으로 작성됨 이 문서는 application을 Spring Boot 3.0으로 migration 하는데 도움을 주기 위한 것입니다. Before You Start Upgrade to the Lastest 2.7.x Version upgrade를 시작하기 전에 사용 가능한 최신 2.7.x 버전으로 upgrade 해야 합니다. 이렇게 하면 해당 라인의 최신 dependency에 대해 빌드하고 있는지 확인할 수 있습니다. Review Dependencies Spring Boot 3으로 이동하면 많은 dependency가 upgrade 되며..

Spring Boot 3.0 Release Notes
Study/Java 2022. 11. 27. 03:30

전체 Release Notes 목록은 이 곳에서 확인할 수 있습니다. https://luvstudy.tistory.com/tag/Release%20Notes https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0-Release-Notes 21 revision 기준으로 작성됨 Upgrading from Spring Boot 2.7 이것은 Spring boot의 주요 release이기 때문에 기존 application을 upgrade하는 것은 평소보다 조금 복잡할 수 있습니다. 기존 Spring Boot 2.7 application을 upgrade하는데 도움이 되는 전용 migration guide를 마련했습니다. 현재 이전 버전의 Sprin..

Spring Boot GraphQL 사용해보기
Study/Java 2022. 9. 2. 04:34

GraphQL 소개 GraphQL은 페이스북에서 만든 API를 위한 쿼리 언어이다. SQL과 유사하게 사용하는 웹 요청용 쿼리를 정의한 규약이고 많이 사용하는 REST API와 다른 형식의 요청이라고 생각하면 된다. REST API의 경우 요청 주소에 따라 응답 결과를 얻게 되지만 GraphQL은 단일 요청 주소로 질의한 쿼리 별 대한 응답 결과를 얻는 차이가 있다. GraphQL 홈페이지 GraphQL for Java/Kotlin GraphQL은 다양한 언어에 대한 라이브러리를 제공하고 있다. Code using GraphQL 이 중 Java에서 사용하기 위한 라이브러리 항목은 다음을 참고한다. Code using GraphQL Java/Kotlin Spring for GraphQL 이 중 graphq..

Spring Boot Database Initialization
카테고리 없음 2022. 6. 13. 04:39

Spring Boot를 사용하면서 DataSource initialization에 대한 여러 방법을 알아보자. https://docs.spring.io/spring-boot/docs/current/reference/html/howto.html#howto.data-initialization “How-to” Guides Spring Boot has no mandatory logging dependency, except for the Commons Logging API, which is typically provided by Spring Framework’s spring-jcl module. To use Logback, you need to include it and spring-jcl on the class..

article thumbnail
Spring Boot project STS에서 열어보기
Study/Java 2022. 5. 26. 10:40

Spring Boot 소스 보기 Spring의 소스들은 현재 github에 공개되어 있다. 가끔 source jar로 보는 게 아닌 현재 사용하려는 최신 릴리즈(지금의 경우 Spring Boot 2.7.0)의 모든 소스를 보고 싶은 경우가 있다. git 주소를 가져와 STS git repository에 추가하면 main branch를 가져오는데 main branch의 경우 계속 개발이 추가되고 있고 현재 시점에서 2.7.0 다음 버전이 개발 중이다. 따라서 지금 spring boot main branch를 가져오면 개발 중인 3.0.0-SNAPSHOT을 보게 된다. Spring Boot의 경우 각 버전을 releaase 할 때마다 tag를 이용해 표시해둔다. Github Spring Project의 Sp..

Spring Boot 2.7 Release Notes
Study/Java 2022. 5. 20. 08:15

전체 Release Notes 목록은 이 곳에서 확인할 수 있습니다. https://luvstudy.tistory.com/tag/Release%20Notes https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.7-Release-Notes Upgrading from Spring Boot 2.6 @SpringBootTest Property Source Precendence properties attribute 또는 @TestPropertySource annotation을 사용하여 @SpringBootTest 가 추가한 test property source가 이제 command line property source 위에 추가되었습니다. (동일한..

article thumbnail
JDK LTS release 2년 주기 전환 및 Spring의 release 정책
Study/Java 2022. 1. 12. 16:01

JDK version Java SE 5 이전 자바는 JDK 1.0, JDK 1.1, J2SE 1.2, J2SE 1.3, J2SE 1.4처럼 1.x로 버전을 관리하였다. 이후 6, 7, 8과 같은 숫자로 변경이 되었는데 이때 이후 각 버전 별 업데이트가 계속 올라가게 된다. (관련 히스토리는 너무 길어 링크로 대체함) https://namu.wiki/w/Java/%EB%B2%84%EC%A0%84%20%EC%A0%95%EB%B3%B4 각 버전 별 업데이트 관리를 해야 하는 부담이 커지자 오라클은 상용과 오픈소스를 나누기로 하고 openjdk와 oraclejdk를 분리하고 6개월 주기로 major 버전을 변경하고 3년 주기로 LTS (Long Term Support) 버전을 관리하기로 하였다. 이에 대해서는 ..

Spring Boot 2.6 Release Notes
Study/Java 2021. 11. 23. 14:28

전체 Release Notes 목록은 이 곳에서 확인할 수 있습니다. https://luvstudy.tistory.com/tag/Release%20Notes https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.6-Release-Notes Upgrading from Spring Boot 2.5 Deprecations from Spring Boot 2.4 Spring Boot 2.4에서 더 이상 사용되지 않는 class, method 및 properties가 이번 release에서 제거되었습니다. upgrade 하기 전에 더 이상 사용되지 않는 method를 호출하지 않는지 확인하세요. Circular References Prohibited ..