spring boot2016. 3. 10. 10:49
반응형

spring boot linux 배포후 한글 파라미터 않먹을때

spring security 처리된 경우 


1
2
3
4
5
6
7
8
9
@Override    
public void configure(HttpSecurity http) throws Exception {         
    CharacterEncodingFilter filter = new CharacterEncodingFilter();        
    filter.setEncoding("UTF-8");        
    filter.setForceEncoding(true);        
    http.addFilterBefore(filter,CsrfFilter.class);        
    http.authorizeRequests().antMatchers("/**").permitAll();
//        http.authorizeRequests().antMatchers("/api/**").hasRole("ADMIN");    
}
cs


Posted by 1010