一、定义注解 @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) public @interface NoNeedLogin { } 二、定义拦截器 @Component public class AuthenticationInterceptor extends Hand…
一、Maven配置里使用SpringBoot配置里的属性 <resource> <directory>src/main/resources/${profiles.active}</directory> <filtering>true</filtering> <includes>…