IT/스프링(Spring)
[스프링/Spring] 스프링 배치(Spring) MyBatis sqlSession 가져오는 흐름도
스프링(Spring) MyBatis sqlSession 설정하는 곳이다. context-mybatis.xml에서 sqlSessionA를 정의하고, Bean을 주입한다. 여기서, sqlSessionFactoryA라는 sqlSessionFactoryBean을 만들고, mapperLocation을 통해 아래의 경로에 있는 모든 xml을 읽어들인다. context-mybatis.xml classpath:/mybatis/${jdbc.db}/test/*.xml classpath:/mybatis/${jdbc.db}/test/**/*.xml classpath:/mybatis/${jdbc.db}/test/**/**/*.xml classpath:/mybatis/${jdbc.db}/test/**/**/**/*.xml cla..
2022. 4. 18.
최근댓글