org.apache.ibatis.binding.BindingException: Invalid bound statement (not found) 解决方案

<bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">
   <property name="configLocation" value="classpath:mybatis.xml" />
   <property name="dataSource" ref="dataSource" />
   <property name="mapperLocations">
      <value>classpath*:mapping/*.xml</value>
   </property>
</bean>

将你的mapping文件夹添加到spring配置文件中即可

猜你喜欢

转载自blog.csdn.net/qq_31615049/article/details/81159610