Skip to content

Commit 25f2d4c

Browse files
beiwei30cvictory
authored andcommitted
[DUBBO-3476]: NullPointerException happened when using SpringContainer.getContext() (#3600)
* #3476: NullPointerException happened when using SpringContainer.getContext() * rollback change for DEFAULT_SPRING_CONFIG
1 parent 8f7b0c3 commit 25f2d4c

File tree

1 file changed

+2
-1
lines changed
  • dubbo-container/dubbo-container-spring/src/main/java/org/apache/dubbo/container/spring

1 file changed

+2
-1
lines changed

dubbo-container/dubbo-container-spring/src/main/java/org/apache/dubbo/container/spring/SpringContainer.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ public void start() {
4646
if (StringUtils.isEmpty(configPath)) {
4747
configPath = DEFAULT_SPRING_CONFIG;
4848
}
49-
context = new ClassPathXmlApplicationContext(configPath.split("[,\\s]+"));
49+
context = new ClassPathXmlApplicationContext(configPath.split("[,\\s]+"), false);
50+
context.refresh();
5051
context.start();
5152
}
5253

0 commit comments

Comments
 (0)