Polish
This commit is contained in:
@@ -208,7 +208,7 @@ public class TomcatEmbeddedServletContainer implements EmbeddedServletContainer
|
||||
addPreviouslyRemovedConnectors();
|
||||
Connector connector = this.tomcat.getConnector();
|
||||
if (connector != null && this.autoStart) {
|
||||
startConnector(connector);
|
||||
performDeferredLoadOnStartup();
|
||||
}
|
||||
checkThatConnectorsHaveStarted();
|
||||
this.started = true;
|
||||
@@ -281,7 +281,7 @@ public class TomcatEmbeddedServletContainer implements EmbeddedServletContainer
|
||||
}
|
||||
}
|
||||
|
||||
private void startConnector(Connector connector) {
|
||||
private void performDeferredLoadOnStartup() {
|
||||
try {
|
||||
for (Container child : this.tomcat.getHost().findChildren()) {
|
||||
if (child instanceof TomcatEmbeddedContext) {
|
||||
|
||||
@@ -127,7 +127,7 @@ public class PropertySourcesLoader {
|
||||
if (canLoadFileExtension(loader, resource)) {
|
||||
PropertySource<?> specific = loader.load(sourceName, resource,
|
||||
profile);
|
||||
addPropertySource(group, specific, profile);
|
||||
addPropertySource(group, specific);
|
||||
return specific;
|
||||
}
|
||||
}
|
||||
@@ -154,8 +154,7 @@ public class PropertySourcesLoader {
|
||||
return false;
|
||||
}
|
||||
|
||||
private void addPropertySource(String basename, PropertySource<?> source,
|
||||
String profile) {
|
||||
private void addPropertySource(String basename, PropertySource<?> source) {
|
||||
|
||||
if (source == null) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user