检查mapper是否正确映射配置文件
<mappers>
<mapper resource="comdemomapperuserMapper.xml"/>
<!--使用class映射必须接口名和配置文件名一致,必须在同一个包下
<mapper class="com.demo.dao.UserDaoInterface"/>
使用package映射必须接口名和配置文件名一致,必须在同一个包下
<package name="com.demo.dao" />-->
</mappers>
检查target,文件资源是否被导出
没有导出的话在maven配置文件里面配置build,防止资源导出失败的问题-
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>true</filtering>
</resource>
</resources>
</build>