Skip to content

Instantly share code, notes, and snippets.

View SergiiVlasiuk's full-sized avatar

Sergii SergiiVlasiuk

  • Poltava, Ukraine
View GitHub Profile
@SergiiVlasiuk
SergiiVlasiuk / MainConfiguration.java
Last active July 11, 2018 15:10
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);
}
/**
*
* LENS
*
*
*/
case class Street(name: String, number: Int)
case class Address(country: String, city: String, street: Street)