반응형
Notice
Recent Posts
Recent Comments
«   2024/11   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Archives
Today
Total
관리 메뉴

차근차근

egov 전자정부프레임워크 sample mapper 설정 변경 본문

개발

egov 전자정부프레임워크 sample mapper 설정 변경

철산92 2019. 12. 11. 23:20
반응형

context-mapper.xml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?xml version="1.0" encoding="UTF-8"?>
 
    <!-- SqlSession setup for MyBatis Database Layer -->
    <bean id="sqlSession" class="org.mybatis.spring.SqlSessionFactoryBean">
        <property name="dataSource" ref="dataSource" />
        <property name="configLocation" value="classpath:/egovframework/sqlmap/example/sql-mapper-config.xml" />
        <property name="mapperLocations" value="classpath:/egovframework/sqlmap/example/mappers/*.xml" />
    </bean>
 
    
    <!-- MapperConfigurer setup for MyBatis Database Layer with @Mapper("deptMapper") in DeptMapper Interface -->
        <!--<property name="basePackage" value="egovframework.example.sample.service.impl" />-->
        <property name="basePackage" value="egovframework.**.**.service.impl" />
    </bean>
    
</beans>
 

<property name="basePackage" value="egovframework.**.**.service.impl" /> 로 변경

반응형
Comments