To align with the behavior of WebSecurityConfigurerAdapter, the HttpSecurityConfiguration class should inject the ContentNegotiationStrategy bean and set it as a shared object.
To align with the behavior of WebSecurityConfigurerAdapter, the HttpSecurityConfiguration class should inject the ContentNegotiationStrategy bean and set it as a shared object.