问题
java.lang.ExceptionInInitializerError
Caused by: org.apache.ibatis.exceptions.PersistenceException
<select id="getTeacher" resultType="Teacher">
select * from teacher where id = #{id}
</select>
//类型无法识别,得全部写下来 com.chen.entity.Teacher
<select id="getTeacher" resultType="com.chen.entity.Teacher">
select * from teacher where id = #{id}
</select>
还有可能是写了相同的函数名,即使返回类型和输入类型不同
public interface TeacherMapper {
public List<Teacher> getTeacher();
public Teacher getTeacher(int id);
}