拦截器中获取应用名称为null

springboot 拦截器中使用@Value注解为null

 

需要在 WebMvcConfiguration 类中 先把 LogInterceptor 注入,LogInterceptor 中的@Value注解就可以获取到值了

springboot 拦截器中使用@Value注解为null

 

相关文章: