Spring boot (62) 썸네일형 리스트형 Spring Boot version Mappings 확인하기 기존에 Spring Boot를 사용하면서 관련하여 Spring Cloud나 Spring Data, 그 밖의 호환 버전들에 대해 각 프로젝트들의 문서나 github의 wiki를 찾아서 참고하곤 했었다.보통 Spring Boot와 Spring Cloud 호환버전을 많이 찾곤 했는데https://github.com/spring-cloud/spring-cloud-release/wiki/Supported-Versions Supported VersionsSpring Cloud Release Train - dependency management across a wide range of Spring Cloud projects. - spring-cloud/spring-cloud-releasegithub.com이제 Spr.. Spring Boot 4.0 Road to GA introduction Spring Boot 4.0 Release가 이제 얼마 남지 않았다.Jdk 25는 2005년 9월 16일 GA(General Availability)가 나올 예정이고https://openjdk.org/projects/jdk/25/ JDK 25 openjdk.orgSpring Boot 4.0 GA는 현재 2005년 11월 20일 예정이다.https://github.com/spring-projects/spring-boot/milestones GitHub - spring-projects/spring-boot: Spring Boot helps you to create Spring-powered, production-grade applications and servicesSpring Boot helps you t.. Spring Boot 3.5 Release Notes 전체 Release Notes 목록은 이곳에서 확인할 수 있습니다.https://luvstudy.tistory.com/tag/Release%20Noteshttps://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.5-Release-Notes13 revision 기준으로 작성됨Upgrading from Spring Boot 3.4spring-boot-parentspring-boot-parent module 은 더 이상 publish 되지 않습니다.이 module은 Spring Boot 자체 test 등에서 사용되는 내부 dependency에 대한 dependency management를 제공합니다.spring-boot-parent 를 사용 중이었다면.. Spring Boot ConfigurationMetaData 사용해 보기 Spring Boot Configuration MetaData 소개https://docs.spring.io/spring-boot/specification/configuration-metadata/index.htmlSpring Boot는 java에서 @ConfigurationProperties 를 선언한 properties에 대한 정보를 /META-INF/spring-configuration-metadata.json 파일로 Configuration Metadata를 제공한다.spring-boot-autoconfigure 에 있는 /META-INF/spring-configuration-metadata.json 파일을 보면 대략 다음과 같다.{ "groups": [ { "name": "serv.. ApplicationContextRunner에서 Condition Evaluation Report 확인하기 Spring Boot 기반 autoconfigure 환경을 제공하는 프로젝트 경우 테스트 코드 작성 시 Spring이 제공하는 ApplicationContextRunner , WebApplicationContextRunner , ReactiveWebApplicationContextRunner 를 사용하여 작성하게 된다.예전엔 ApplicationContextRunner 또는 WebApplicationContextRunner 사용 시 debug=true 옵션을 추가하면 boot 관련 로그를 확인할 수 있었다.버전이 올라가면서 로그를 확인하는 방식이 바뀌었고 기존 코드의 runner 실행 시 로그가 보이지 않게 되었다.아래처럼 initializer로 ConditionEvaluationReportLogging.. Spring Boot 3.4 Release Notes 전체 Release Notes 목록은 이곳에서 확인할 수 있습니다.https://luvstudy.tistory.com/tag/Release%20Noteshttps://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.4-Release-Notes17 revision 기준으로 작성됨Spring Boot 3.4 Release NotesUpgrading from Spring Boot 3.3RestClient and RestTemplateReactor Netty의 HttpClient 또는 JDK의 HttpClient 를 사용하도록 RestClient 및 RestTemplate 을 auto-configure 하는 지원이 추가되었습니다.우선순위에 따라 지원되는 c.. Spring Cloud Context의 @RefreshScope를 사용하여 properties 설정 갱신하기 기본적인 @ConfigurationProperties , @PropertySource 사용Spring Boot 기반 프로젝트에서 @ConfigurationProperties 로 지정된 bean은 처음 application이 startup 할 때 bean이 생성되고 여러 properties 파일에서 읽어와 Environment에 저장된 값을 가져와 해당 bean에 바인딩해 준다.다음과 같이 @ConfigurationProperties 를 선언하고@ConfigurationProperties(prefix = "someProperties")@Datapublic class SomeProperties { private String someKey1; private long someKey2; //.. .. spring-boot-properties-migrator로 custom property report 하기 spring-boot-properties-migrator 소개Spring Boot 기반 프로젝트에서 버전 변경 시 property가 변경되는 경우가 있다.spring-boot-properties-migrator depnedency를 추가하면 application 실행 시 변경된 property가 어떤 것인지 쉽게 확인할 수 있다.log로 대략 다음과 같이 안내해 준다.The use of configuration keys that have been renamed was found in the environment:Property source 'configserver:class path resource [xxxx.properties]': Key: spring.http.encoding.charset .. 이전 1 2 3 4 ··· 8 다음