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 @@ -206,16 +206,16 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader
206206 * Create a new AbstractApplicationContext with no parent.
207207 */
208208 public AbstractApplicationContext () {
209- this ( null );
209+ this . resourcePatternResolver = getResourcePatternResolver ( );
210210 }
211211
212212 /**
213213 * Create a new AbstractApplicationContext with the given parent context.
214214 * @param parent the parent context
215215 */
216216 public AbstractApplicationContext (ApplicationContext parent ) {
217- this . parent = parent ;
218- this . resourcePatternResolver = getResourcePatternResolver ( );
217+ this () ;
218+ setParent ( parent );
219219 }
220220
221221
You can’t perform that action at this time.
0 commit comments