Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fedotxxl/10ff957c40bd166717d6c177ed14f92d to your computer and use it in GitHub Desktop.
Save fedotxxl/10ff957c40bd166717d6c177ed14f92d to your computer and use it in GitHub Desktop.
@Bean
public WebServerFactoryCustomizer<TomcatServletWebServerFactory> webServerFactoryCustomizer() {
return new WebServerFactoryCustomizer<TomcatServletWebServerFactory>() {
@Override
public void customize(TomcatServletWebServerFactory factory) {
TomcatServletWebServerFactory tomcat = (TomcatServletWebServerFactory) factory;
tomcat.addContextCustomizers(context -> context.setCookieProcessor(new LegacyCookieProcessor()));
}
};
}
@WillyanAnjos
Copy link

Thank you bro.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment