①Could not find resource mybatis-config.xml
<!--在build中配置resources,来防止我们资源导出失败的问题-->
<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>
②Type interface com.tuan.dao.UserDao is not known to the MapperRegistry.
<!-- 每一个Mapper.XML都需要在MyBatis核心配置文件中注册 -->
<mappers>
<mapper resource="com/tuan/dao/UserMapper.xml"/>
</mappers>
③
④