Skip to content

Commit 887ebb6

Browse files
committed
增加EntityMapper配置
1 parent bab116a commit 887ebb6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/resources/applicationContext.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,11 @@
4747
</bean>
4848

4949
<bean class="org.mybatis.spring.mapper.MapperScannerConfigurer">
50-
<property name="basePackage" value="com.isea533.mybatis.mapper"/>
50+
<property name="basePackage" value="com.isea533.mybatis.mapper,com.github.abel533.entity.mapper"/>
51+
</bean>
52+
53+
<bean id="entityMapper" class="com.github.abel533.entity.EntityMapper" scope="prototype">
54+
<constructor-arg ref="commonMapper"/>
5155
</bean>
5256

5357
<bean id="sqlSession" class="org.mybatis.spring.SqlSessionTemplate" scope="prototype">

0 commit comments

Comments
 (0)