servletContext not recognized in Spring XML

According to the comments that are part of the JavaDoc for ServletContextFactoryBean it is:

Deprecated. as of Spring 3.0, since "servletContext" is now available  as a default bean in every WebApplicationContext

But when I use it in a Spring Context XML file, it's painted red and displays the error:

Cannot resolve bean servletContext

when hovered over.  Any chance the inspection can be updated?
  (*Chris*)

4 comments
Comment actions Permalink

Hello Chris,

what build are you using? This looks like http://youtrack.jetbrains.com/issue/IDEA-86227

0
Comment actions Permalink

I'm using 11.1.3.  That problem definitely looks related, but the problem I'm seeing is in the Application Context XML file, not the Java Source.  I suspect it's the same cause, but two different inspectors.
  (*Chris*)

0
Comment actions Permalink

I see, could you please file a new issue? Thanks.

0
Comment actions Permalink

Done.  IDEA-90590
  (*Chris*)

0

Please sign in to leave a comment.