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
217
217
* Create a new AbstractApplicationContext with no parent.
218
218
*/
219
219
public AbstractApplicationContext () {
220
- this ( null );
220
+ this . resourcePatternResolver = getResourcePatternResolver ( );
221
221
}
222
222
223
223
/**
224
224
* Create a new AbstractApplicationContext with the given parent context.
225
225
* @param parent the parent context
226
226
*/
227
227
public AbstractApplicationContext (ApplicationContext parent ) {
228
- this . parent = parent ;
229
- this . resourcePatternResolver = getResourcePatternResolver ( );
228
+ this () ;
229
+ setParent ( parent );
230
230
}
231
231
232
232
You can’t perform that action at this time.
0 commit comments