portMapper

fun portMapper(portMapperConfiguration: PortMapperDsl.() -> Unit)

Allows configuring a port mapper.

Example:

@Configuration
@EnableWebSecurity
class SecurityConfig {

@Bean
fun securityFilterChain(http: HttpSecurity): SecurityFilterChain {
http {
portMapper {
map(80, 443)
}
}
return http.build()
}
}

Parameters

portMapperConfiguration

custom configurations to configure the port mapper

See also