mardi 19 mai 2015

java based configuration for web.xml

Since last eight years I am working with spring. Recently I encountered a scenario where I could not able to use spring or it's related component and application should be purely based on Java EE 7.

So I need to know is there any possible way to skip WEB.xml and have related settings like resource-ref and security-constraint inside some Java configuration file ? is possible to have these settings with the help of ServletContainerInitializer ?

I need to deploy this application in Tomcat 8.x

Aucun commentaire:

Enregistrer un commentaire