Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Change spring security multithread strategy
@Import( {WebConfiguration.class, SwaggerConfiguration.class, AuthorizationConfiguration.class,
DataSourceConfiguration.class})
@EnableJpaAuditing
public class MainConfiguration {
@PostConstruct
void init() {
TimeZone.setDefault(TimeZone.getTimeZone(Constants.DEFAULT_TIME_ZONE_ID));
SecurityContextHolder.setStrategyName(MODE_INHERITABLETHREADLOCAL);
}
// ....
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.