Skip to content

Commit

Permalink
Optimize DefaultApplicationProvider init app.id logic
Browse files Browse the repository at this point in the history
  • Loading branch information
kangjiabang authored and nobodyiam committed Aug 18, 2019
1 parent dce5116 commit 5fa93b6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class DefaultApplicationProvider implements ApplicationProvider {
@Override
public void initialize() {
try {
InputStream in = Thread.currentThread().getContextClassLoader().getResourceAsStream(APP_PROPERTIES_CLASSPATH);
InputStream in = Thread.currentThread().getContextClassLoader().getResourceAsStream(APP_PROPERTIES_CLASSPATH.substring(1));
if (in == null) {
in = DefaultApplicationProvider.class.getResourceAsStream(APP_PROPERTIES_CLASSPATH);
}
Expand Down

0 comments on commit 5fa93b6

Please sign in to comment.