@Configuration @ConfigurationProperties(prefix="spring.messages") public class I8nConfig extends Object
| Modifier and Type | Field and Description |
|---|---|
private List<String> |
basename |
private String |
encoding |
| Constructor and Description |
|---|
I8nConfig() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.context.MessageSource |
messageSource() |
AppletLocaleResolver |
resolver() |
void |
setBasename(List<String> basename) |
void |
setEncoding(String encoding) |
javax.validation.Validator |
validator() |
@Bean public org.springframework.context.MessageSource messageSource()
@Bean public javax.validation.Validator validator()
@Bean(name="appletLocaleResolver") public AppletLocaleResolver resolver()
public void setEncoding(String encoding)
Copyright © 2024. All rights reserved.