yunfei wangwiselyman.hashnode.dev·Nov 3, 2022Spring Boot 2.6新特性:使用Java 17的Record作为配置属性Spring Boot 3.0的基线版本是Java 17,Spring Boot 3.0版本将全面对Java 17的支持。较新版本的2.x的Spring Boot版本也可以使用Java 17的特性。 本文介绍Spring Boot 2.6对Java 17支持的一个新特性,使用Java 17的Record来做为Spring Boot的配置属性(ConfiguartionProperties)。 什么是Record record是一种特殊类型的类声明,目的是为了减少样板代码。record引入的主要目...80 readsjava 17Add a thoughtful commentNo comments yetBe the first to start the conversation.