Skip to content

Instantly share code, notes, and snippets.

Sergii SergiiVlasiuk

  • Poltava, Ukraine
Block or report user

Report or block SergiiVlasiuk

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
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.