mybatis框架的
这是映射文件
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.tedu.yhmis.pojo.OrderMapper">
<!-- 订单的映射 -->
<resultMap type="Order" id="orderRM">
<!--主键 -->
<id property="id" column="id"/>
<!-- 普通的属性 -->
<result property="oederType" column="oeder_type"/>
<result property="oederNo" column="oeder_no"/>
<result property="cashier" column=" cashier"/>
<result property="createTime" column="create_time"/>
<result property="end" column="end"/>
<result property="paymentType" column="payment_type"/>
<result property=" price" column=" price"/>
<result property="personNum" column="person_num"/>
</resultMap>
<select id="get" parameterType="int" resultMap="orderRM">
select * from tb_order
</select>
</mapper>
这是配置文件
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE configuration
PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-config.dtd">
<configuration>
<!-- 加载属性文件 -->
<properties resource="db.properties"/>
<!-- 全局配置 mapUnderscoreToCamelCase 下划线和驼峰规则自动映射-->
<settings>
<setting name="mapUnderscoreToCamelCase" value="true"/>
</settings>
<!-- 简称类起别名 -->
<typeAliases>
<typeAlias type="cn.tedu.yhmis.pojo.Order" alias="Order"/>
</typeAliases>
<!-- 配合环境,事物,数据源,映射文件 -->
<environments default="test">
<environment id="test">
<!-- transactionManager只支持两种事物 jdbc/MANAGE -->
<transactionManager type="JDBC"/>
<!-- 数据源 POOLED/UPPOOLED/JNDI-->
<dataSource type="POOLED">
<property name="driver" value="${driver}"/>
<property name="url" value="${url}"/>
<property name="username" value="${username}"/>
<property name="password" value="${password}"/>
</dataSource>
</environment>
</environments>
<mappers>
<!-- 高数mybatis映射文件路径存在 -->
<mapper resource="cn.tedu.yhmis.pojo.OrderMapper"/>
</mappers>
</configuration>
org.apache.ibatis.exceptions.PersistenceException:
### Error building SqlSession.
### The error may exist in cn.tedu.yhmis.pojo.OrderMapper
### Cause: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: java.io.IOException: Could not find resource cn.tedu.yhmis.pojo.OrderMapper
出啦配置出错我实在没有看出哪里错啦请大佬帮忙看下