1.第一次搭建SpringBoot踩得坑
1.1mapp总是注入不了,在百度上找了一大圈,都是瞎白呼
解决方法:
在mapper接口上增加@Mapper注解
在pom文件中增加
<build>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
<filtering>false</filtering>
</resource>
</resources>
</build>
问题完美解决