更新时间:2022-06-19 22:21:08
正如Andy Wilkinson在评论中指出的那样,当使用带有排除列表的EnableAutoConfiguration时,请确保没有其他类使用EnableAutoConfiguration或SpringBootApplication注释。
As pointed out by Andy Wilkinson in comments, when using EnableAutoConfiguration with exclude list make sure there are no other classes annotated with EnableAutoConfiguration or SpringBootApplication.