Prev Next

Spring / Spring Security

How do I enable Spring Security in Java Web application?

To enable Spring security in Java Web application, you need to do configure three things,

  • declare a delegating proxy filter in web.xml,
  • add ContextLoaderListener in web.xml,
  • and provide actual security constraints on applicationContext-Security.xml file.
Since Spring security uses a chain of filters to implement various security constraints, also known as security chain filter, it relies on web container for the initialization of delegating filter proxy.

More Related questions...

Show more question and Answers...


Comments & Discussions