摘要: https://docs.spring.io/spring-security/site/docs/5.4.0-M1/reference/html5/#servlet-authentication-granted-authority 阅读全文
posted @ 2020-08-02 00:46 阿布都日 阅读(67) 评论(0) 推荐(0) 编辑
摘要: The Authentication contains: principal - identifies the user. When authenticating with a username/password this is often an instance of UserDetails. c 阅读全文
posted @ 2020-08-02 00:41 阿布都日 阅读(156) 评论(0) 推荐(0) 编辑
摘要: ChannelProcessingFilter WebAsyncManagerIntegrationFilter SecurityContextPersistenceFilter HeaderWriterFilter CorsFilter CsrfFilter LogoutFilter OAuth2 阅读全文
posted @ 2020-08-02 00:20 阿布都日 阅读(657) 评论(0) 推荐(0) 编辑
摘要: CAS: single sign-on server 阅读全文
posted @ 2020-08-01 23:49 阿布都日 阅读(98) 评论(0) 推荐(0) 编辑
摘要: JSON Web Token (JWT) JSON Web Signature (JWS) JSON Web Encryption (JWE) JSON Web Key (JWK) 阅读全文
posted @ 2020-08-01 23:46 阿布都日 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 优点:可以加快程序启动速度 缺点:配置错误的Bean在启动时不会被发现 默认:关闭 开启方法1.:pringApplicationBuilder的lazyInitialization方法 开启方法2:SpringApplication的setLazyInitialization方法 开启方法3:sp 阅读全文
posted @ 2020-07-25 17:09 阿布都日 阅读(144) 评论(0) 推荐(0) 编辑
摘要: springboot会提供FailureAnalyzer来提供失败原因和解决方案如果springboot未能提供此信息,可以把debug设置为true来获取调试信息 阅读全文
posted @ 2020-07-25 16:59 阿布都日 阅读(160) 评论(0) 推荐(0) 编辑
摘要: spring.main.log-startup-info=true 可以继承SpringApplication类并实现logStartupInfo来记录其他日志信息 @SpringBootApplication public class MeraspringApplication { public 阅读全文
posted @ 2020-07-25 16:54 阿布都日 阅读(241) 评论(0) 推荐(0) 编辑
摘要: [annotations] @ComponentScan @ConfigurationPropertiesScan @EntityScan @SpringBootApplication @Entity @EnableAutoConfiguration @Configuration @Import @ 阅读全文
posted @ 2020-07-25 16:15 阿布都日 阅读(149) 评论(0) 推荐(0) 编辑
摘要: #检查java版本,java版本要大于等于1.8 java -version #忽略cli,maven的安装 #maven命令: mvn package:在当前目录创建pom.xml文件执行此命令就会创建一个maven项目 <?xml version="1.0" encoding="UTF-8"?> 阅读全文
posted @ 2020-07-25 14:14 阿布都日 阅读(123) 评论(0) 推荐(0) 编辑