原因是引入了spring security的依赖,将spring security对应的依赖删除即可。 具体可参照: https://blog.csdn.net/qq_37887131/article/details/89705595 相关文章: