随笔分类 -  springboot

摘要:SpringMvc 访问 /test和/test.**时会使用/test接口 SpringBoot 访问 /test和/test.**时,只有 /test会使用/test接口 原因: 1、观察RequestMappingHandlerMapping的源码,可以看到SpringMVC底层默认会开启/t 阅读全文
posted @ 2020-09-11 22:16 神无二一 阅读(645) 评论(0) 推荐(0)
摘要:1、创建SecurityUser类,需要实现UserDetails接口 import lombok.Data; import lombok.EqualsAndHashCode; import org.springframework.security.core.GrantedAuthority; im 阅读全文
posted @ 2020-07-31 18:30 神无二一 阅读(4992) 评论(0) 推荐(0)