SpringBoot于2014年首次发布 构建安全的SpringBoot应用 生产环境使用HTTPS 强制使用HTTPS,扩展WebSecurityConfigurerAdapter要求安全连接。 @Configuration public class WebSecurityConfigurerAdapter extends WebSecurityConfigurerAdapter { @Override protected void configure(HttpS