Subversion Repositories SmartDukaan

Rev

Rev 32170 | Rev 32569 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
24349 amit.gupta 1
package com.spice.profitmandi.web.config;
2
 
3
import org.springframework.beans.propertyeditors.StringTrimmerEditor;
4
import org.springframework.web.bind.WebDataBinder;
5
import org.springframework.web.bind.annotation.ControllerAdvice;
6
import org.springframework.web.bind.annotation.InitBinder;
7
 
32171 jai.hind 8
@ControllerAdvice(basePackages="com.profitmandi.*")
24349 amit.gupta 9
public class ControllerSetup
10
{
11
    @InitBinder
32171 jai.hind 12
    public void initBinder ( WebDataBinder binder )
24349 amit.gupta 13
    {
14
        StringTrimmerEditor stringtrimmer = new StringTrimmerEditor(true);
15
        binder.registerCustomEditor(String.class, stringtrimmer);
16
    }
17
}