728x90 xml3 Mybatis mapper xml 파일 위치 지정 XXXMapper.xml 위치 지정(classpath* 사용해야함 * ← 있어야함)root-context.xml @Bean public SqlSessionFactory sqlSessionFactory() throws Exception { SqlSessionFactoryBean sqlSessionFactory = new SqlSessionFactoryBean(); // dataSource sqlSessionFactory.setDataSource(dataSource()); // MyBatis Configuration org.apache.ibatis.session.Configuration mybatisConfig = new org.apache.ibatis.session.Configuration(); .. 2024. 6. 10. Around Advice ( ver. Spring ) [ 이전 글 ]Aspect Oriented Programming ( 2 ) Aspect Oriented Programming ( 2 ) [ 이전 글 ] Aspect Oriented Programming ( 1 ) Aspect Oriented Programming ( 1 ) Aspect Oriented Programming 관점 지향 프로그래밍 ( 방법론 ) OOP 사용자가 요구한 업무내용(요청)을 분석하고 이를 기반의 로직을 만듬 개 cloakinghost.tistory.com Spring Version 보조업무의 4종류 Before Advice ( 앞쪽 ) After returnning Advice ( 뒤쪽 ) After throwing Advice ( 예외처리 ) Around Advice ( 앞, 뒤.. 2023. 8. 7. XML 사용법 [ 이전 글 ] Inversion of Control Container ( Ioc Container ) Inversion of Control Container ( Ioc Container ) ( 이전 글과 이어지는 내용입니다. https://cloakinghost.tistory.com/8 ) 작성한 XML 파일을 읽어오는 코드를 작성해보자 메인함수에 작성한 부분을 바꿀것이다 Exam exam = new ScoreExam(); ExamConsole console = new Gri cloakinghost.tistory.com Java코드를 XML로 바꿀 수 있다. 객체 초기화 작성방법 충돌방지를 위해 패키지명을 기제한다 id="변수명" class="사용할 클래스의 위치" id="temp" class="패키지.. 2023. 8. 5. 이전 1 다음