hello,
this is the spring config for mybatis:
<bean id="userDao" class="org.mybatis.spring.mapper.MapperFactoryBean">
<property name="sqlSessionFactory" ref="sqlSessionFactory" />
<property name="mapperInterface" value="org.jpadbf.spring3mybatis3.dao.UserDao" />
</bean>
and this is my
test code:
'
ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");
System.out.println(applicationContext.getBean("userDao"));
but it print "null", why? i can initial other beans in the spring config file, so i think there is not problem with the spring.
i use spring3.1.0 M2, mybatis3.0.5 and mybatis-spring1.0.1
thanks for any helps.