1. Abnormal description:
Error creating bean with name 'shiroFilterFactoryBean' defined in class path resource [com/ruoyi/framework/config/ShiroConfig.class]
org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'shiroCasConfig':
Injection of autowired dependencies failed;
nested exception is java.lang.IllegalArgumentException:
Could not resolve placeholder 'shiro.session.expireTime' in value "${shiro.session.expireTime}"
2. The cause of the problem:
After creating a new submodule, the original jar packaging method in maven will be automatically changed to pom packaging, and it is not deleted when it is deleted.
3. Solution:
Change <packaging>pom</packaging> in maven to <packaging>jar</packaging>
4. There are generally three reasons for the abnormality:
- The common problem is that there is a problem with the configuration file, such as a problem with the configuration of the yml or properties file.
- There is a problem with the imported dependency
- Environmental problems, such as jdk inconsistency or iml file problems in idea