This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
* LENS | |
* | |
* | |
*/ | |
case class Street(name: String, number: Int) | |
case class Address(country: String, city: String, street: Street) |