Код: Выделить всё
@ConfigurationProperties("demo")
public record MyConfigurationProperties(
String myProperty
) {
}
< /code>
***************************
APPLICATION FAILED TO START
***************************
Description:
Parameter 0 of constructor in com.example.demo.MyConfigurationProperties required a bean of type 'java.lang.String' that could not be found.
< /code>
How can I use Records as @ConfigurationPropertiesПодробнее здесь: https://stackoverflow.com/questions/666 ... th-records