Skip to content

Instantly share code, notes, and snippets.

Avatar

Sergii SergiiVlasiuk

  • Poltava, Ukraine
View GitHub Profile
View Lens and other Optics
/**
*
* LENS
*
*
*/
case class Street(name: String, number: Int)
case class Address(country: String, city: String, street: Street)
@SergiiVlasiuk
SergiiVlasiuk / MainConfiguration.java
Last active Jul 11, 2018
Change spring security multithread strategy
View MainConfiguration.java
@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);
}
You can’t perform that action at this time.