This commit is contained in:
Looly 2020-03-27 09:34:34 +08:00
parent 130fa344c4
commit 11191b3cfe
2 changed files with 2 additions and 3 deletions

View File

@ -7,6 +7,7 @@
### 新特性
### Bug修复
* 【extra 】 修复SpringUtil使用devtools重启报错问题
-------------------------------------------------------------------------------------------------------------

View File

@ -22,9 +22,7 @@ public class SpringUtil implements ApplicationContextAware {
@SuppressWarnings("NullableProblems")
@Override
public void setApplicationContext(ApplicationContext applicationContext) {
if (SpringUtil.applicationContext == null) {
SpringUtil.applicationContext = applicationContext;
}
SpringUtil.applicationContext = applicationContext;
}
/**