在SecurityConfig类configure()方法中添加 http.headers().frameOptions().sameOrigin().httpStrictTransportSecurity().disable();