maper scan1 마이바티스(Mybatis)연동하기 마이바티스와 스프링 연동 1. web.xml 파일 web.xml파일에서 마이바티스 설정을 지정하는 XML 파일을 읽을 수 있게 경로를 contextConfigLocation에 추가해준다. 추가로 스프링 웹 요청과 응답에 대한 한글 인코딩 처리를 위해 CharacterEncodingFilter도 함께 추가해준다. encodingFilter org.springframework.web.filter.CharacterEncodingFilter encoding UTF-8 forceEncoding true encodingFilter /* contextConfigLocation classpath*:/config/context-*.xml /WEB-INF/spring/root-context.xml org.springfra.. 2020. 5. 7. 이전 1 다음