踩坑记录
1、Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
https://stackoverflow.com/questions/36377461/caused-by-java-lang-classnotfoundexception-org-slf4j-loggerfactory
2、![](https://img2020.cnblogs.com/blog/1053837/202103/1053837-20210330233637097-748739020.png)
![](https://img2020.cnblogs.com/blog/1053837/202103/1053837-20210330233637097-748739020.png)
https://blog.csdn.net/FS1360472174/article/details/89294994
最好使用@Data
3、还有需要注意一下yml文件里映射类型和代码里是否一致。别yml是List,你这里写了Map.class
![](https://img2020.cnblogs.com/blog/1053837/202103/1053837-20210330233744159-850285132.png)