我正在将项目中的JAR升级到最新版本/稳定版本以进行实时部署。在尝试升级之前,我没有任何升级问题:
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-bom</artifactId>
<version>4.1.3.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
要:
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-bom</artifactId>
<version>4.2.3.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
我不得不将其恢复到4.1.3:
java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
有人试过吗?
答案 0 :(得分:0)
你可以试试这个:
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-bom</artifactId>
<version>4.2.0.RELEASE</version>
<type>pom</type>
</dependency>