It is recommended to use the org.springframework.security.ui.webapp package for standard web applications, as it has much lower configuration complexity.
org.springframework.security.ui.webapp