Merge branch '2.7.x'
Closes gh-32197
This commit is contained in:
@@ -21,10 +21,12 @@ import org.springframework.boot.context.properties.bind.DefaultValue
|
||||
import java.net.InetAddress
|
||||
|
||||
@ConfigurationProperties("my.service")
|
||||
class MyProperties(val isEnabled: Boolean, val remoteAddress: InetAddress,
|
||||
@param:DefaultValue val security: Security) {
|
||||
// tag::code[]
|
||||
class MyProperties(val enabled: Boolean, val remoteAddress: InetAddress,
|
||||
@DefaultValue val security: Security) {
|
||||
|
||||
class Security(val username: String, val password: String,
|
||||
@param:DefaultValue("USER") val roles: List<String>)
|
||||
class Security(val username: String?, val password: String?,
|
||||
@param:DefaultValue("USER") val roles: List<String>)
|
||||
|
||||
}
|
||||
}
|
||||
// end::code[]
|
||||
|
||||
Reference in New Issue
Block a user