File tree 1 file changed +5
-4
lines changed
spring-web/src/main/java/org/springframework/web/context/support
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2012 the original author or authors.
2
+ * Copyright 2002-2021 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -85,10 +85,11 @@ public static void processInjectionBasedOnCurrentContext(Object target) {
85
85
bpp .processInjection (target );
86
86
}
87
87
else {
88
- if (logger .isDebugEnabled ()) {
89
- logger .debug ("Current WebApplicationContext is not available for processing of " +
88
+ if (logger .isWarnEnabled ()) {
89
+ logger .warn ("Current WebApplicationContext is not available for processing of " +
90
90
ClassUtils .getShortName (target .getClass ()) + ": " +
91
- "Make sure this class gets constructed in a Spring web application. Proceeding without injection." );
91
+ "Make sure this class gets constructed in a Spring web application after the" +
92
+ "Spring WebApplicationContext has been initialized. Proceeding without injection." );
92
93
}
93
94
}
94
95
}
You can’t perform that action at this time.
0 commit comments