使用的thymeleaf-extras-springsecurity4 版本为3.0.4.RELEASE 使用springboot的版本过高导致的问题应该使用2.1.x以下的版本 转载于:https://www.cnblogs.com/xiezhong96/p/11206109.html