Spring trim all input field
时间:2010-05-03 来源:linxpeng
在Spring-app-servlet.xml里,
<bean id="conversionService" class="org.springframework.context.support.ConversionServiceFactoryBean"> |
class StringToTrimmedStringConverter implements org.springframework.core.convert.converter.Converter, 实现convert方法即可,如
package sample.convertor; |