Update Java 11 to Java 17 in documentation
This commit is contained in:
parent
7922ac63bc
commit
5a97c1493e
|
@ -1077,8 +1077,8 @@ For example, you could add the following settings to your `application.propertie
|
||||||
app:
|
app:
|
||||||
encoding: "UTF-8"
|
encoding: "UTF-8"
|
||||||
java:
|
java:
|
||||||
source: "11"
|
source: "17"
|
||||||
target: "11"
|
target: "17"
|
||||||
----
|
----
|
||||||
|
|
||||||
[TIP]
|
[TIP]
|
||||||
|
|
|
@ -724,7 +724,7 @@ In this setup, the presence of a single parameterized constructor implies that c
|
||||||
This means that the binder will find a constructor with the parameters that you wish to have bound.
|
This means that the binder will find a constructor with the parameters that you wish to have bound.
|
||||||
If your class has multiple constructors, the `@ConstructorBinding` annotation can be used to specify which constructor to use for constructor binding.
|
If your class has multiple constructors, the `@ConstructorBinding` annotation can be used to specify which constructor to use for constructor binding.
|
||||||
To opt out of constructor binding for a class with a single parameterized constructor, the constructor must be annotated with `@Autowired`.
|
To opt out of constructor binding for a class with a single parameterized constructor, the constructor must be annotated with `@Autowired`.
|
||||||
If you are using Java 16 or later, constructor binding can be used with records.
|
Constructor binding can be used with records.
|
||||||
Unless your record has multiple constructors, there is no need to use `@ConstructorBinding`.
|
Unless your record has multiple constructors, there is no need to use `@ConstructorBinding`.
|
||||||
|
|
||||||
Nested members of a constructor bound class (such as `Security` in the example above) will also be bound through their constructor.
|
Nested members of a constructor bound class (such as `Security` in the example above) will also be bound through their constructor.
|
||||||
|
|
Loading…
Reference in New Issue