We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@PostConstruct public void initEditableValidation() { ConfigurableWebBindingInitializer configurableWebBindingInitializer = (ConfigurableWebBindingInitializer) requestMappingHandlerAdapter.getWebBindingInitializer(); if(configurableWebBindingInitializer.getConversionService() != null){ GenericConversionService service = (GenericConversionService) configurableWebBindingInitializer.getConversionService(); service.addConverter(new StringToDateConverter()); } }
The text was updated successfully, but these errors were encountered:
这是网上的代码,用来将时间戳往前端传的时候转化为时间的格式(yymmdd那种)
Sorry, something went wrong.
No branches or pull requests
@PostConstruct
public void initEditableValidation() {
ConfigurableWebBindingInitializer configurableWebBindingInitializer = (ConfigurableWebBindingInitializer) requestMappingHandlerAdapter.getWebBindingInitializer();
if(configurableWebBindingInitializer.getConversionService() != null){
GenericConversionService service = (GenericConversionService) configurableWebBindingInitializer.getConversionService();
service.addConverter(new StringToDateConverter());
}
}
The text was updated successfully, but these errors were encountered: