springboot架构下运用shiro后在configuration,通过@Value获取不到值,总是为null

通过网上查找资料,是因为shiro的bean

@Bean
public LifecycleBeanPostProcessor lifecycleBeanPostProcessor() {
return new LifecycleBeanPostProcessor();
}
原因未知是发生了什么冲突,只需要把LifecycleBeanPostProcessor 这个bean改为static,变成静态就可以
原文地址:https://www.cnblogs.com/heguxin/p/10941874.html