发生这个错误时首先确认你的xml文件内容是没有问题的,然后检查一下你的properties文件的classpath的配置有没有错,
可能的错误如下:错误报没有找到那么就是classpath写错了,或者找到了报IlllegalException异常还有一大堆看不懂的error信息
这个问题怎么解决了,加一个依赖统一排除即可
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
详情可以参考CSDN博主「青蛙与大鹅」的原创文章https://blog.csdn.net/m0_37034294/article/details/82801294