The content of element type “mappers” must match “(mapper*,package*)”
解决方法:将标签中的分开写
即
<!-- 引入SQL映射文件,Mapper映射文件 --> <mappers> <package name="com.yny.mapper"/> </mappers> <mappers> <mapper resource="com.yny.mapper.AdminMapper"/> <mapper resource="com.yny.mapper.TeacherMapper"/> <mapper resource="com.yny.mapper.StudentMapper"/> </mappers>