File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
spring-context/src/main/java/org/springframework/context/support Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -217,16 +217,16 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader
217217 * Create a new AbstractApplicationContext with no parent.
218218 */
219219 public AbstractApplicationContext () {
220- this ( null );
220+ this . resourcePatternResolver = getResourcePatternResolver ( );
221221 }
222222
223223 /**
224224 * Create a new AbstractApplicationContext with the given parent context.
225225 * @param parent the parent context
226226 */
227227 public AbstractApplicationContext (ApplicationContext parent ) {
228- this . parent = parent ;
229- this . resourcePatternResolver = getResourcePatternResolver ( );
228+ this () ;
229+ setParent ( parent );
230230 }
231231
232232
You can’t perform that action at this time.
0 commit comments