Our aim is to do a simple basic authentication on the Wicket application. I want a login dialog to pop-up when we access the URL of the Wicket application. On success it should get redirected to the home page. We need to add Spring Security dependencies to the
pom.xml file and rebuild the Wicket application. The next step will be configuring the spring listener in the
web.xml file. We also need to add the
pom.xmlfile with Spring dependency.
applicationContext.xmlfile. It's mandatory to name it as
applicationContextor else we will get error messages in the console.
web.xmlwith Spring listeners.