Skip to content

Commit

Permalink
[DUBBO-3476]: NullPointerException happened when using SpringContaine…
Browse files Browse the repository at this point in the history
…r.getContext() (#3600)

*     #3476: NullPointerException happened when using SpringContainer.getContext()

* rollback change for DEFAULT_SPRING_CONFIG
  • Loading branch information
beiwei30 authored and cvictory committed Mar 5, 2019
1 parent 8f7b0c3 commit 25f2d4c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ public void start() {
if (StringUtils.isEmpty(configPath)) {
configPath = DEFAULT_SPRING_CONFIG;
}
context = new ClassPathXmlApplicationContext(configPath.split("[,\\s]+"));
context = new ClassPathXmlApplicationContext(configPath.split("[,\\s]+"), false);
context.refresh();
context.start();
}

Expand Down

0 comments on commit 25f2d4c

Please sign in to comment.