List of usage examples for org.springframework.util StringUtils parseLocale
@Nullable public static Locale parseLocale(String localeValue)
From source file:org.springframework.http.converter.json.Jackson2ObjectMapperBuilder.java
/** * Override the default {@link Locale} to use for formatting. * Default value used is {@link Locale#getDefault()}. * @param localeString the locale ID as a String representation * @since 4.1.5/*w w w .j av a 2 s .c om*/ */ public Jackson2ObjectMapperBuilder locale(String localeString) { this.locale = StringUtils.parseLocale(localeString); return this; }