The content of element type "mapper" must match "EMPTY". - Attribute "namespace" must be declared for element type "mapper".
出现这个错误值后是跟xml的头文件的配置有关系,要注意格式,要配置成这个样子 ,要保证头文件的格式的正确性。
<?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">