Skip to content
Advertisement

Adding spring security to an existing Spring MVC

I have spent hours to look for answers and fix this problem. But after spending many hours it seems I might need to put this question for help. I saw many similar scenarios but none became an answer.

I already have a spring web application that runs well with out authentication. I am trying to implement a simple spring security using xml configuration.

Before the update

Before Modification

enter image description here

enter image description here

This Is after Modification

enter image description here

enter image description here

enter image description here

JavaScript
JavaScript

And this is the dispatcher servlet

JavaScript

Here is my configuration before updating it with the example I found online.

JavaScript

I used to be able to access my application at calhost:8283/core/

By the time I update web.xml with the following code

JavaScript

I am getting the following exception

JavaScript

Advertisement

Answer

I used 4.2.1 spring security library and updated spring security xsd like this

spring-security-4.2.xsd

And was able to see the app running well.

Advertisement