Configure Dispatcher Servlet in just two lines of code. How does this magic happen? || Spring MVC

Sdílet
Vložit
  • čas přidán 5. 09. 2024
  • Spring MVC Java-based configuration // "abstractannotationconfigdispatcherservletinitializer": This abstract class makes our life easy when it comes to setting up the dispatcher servlet object using java code. When we extend to this class, spring completely takes control and helps us initializing the dispatcher servlet.
    This class internally implements the WebApplicationInitializer interface. To know more about this interface, You may follow my earlier spring MVC tutorials by clicking the below link.
    • NO WEB.XML ? || Spring...
    We also have a different task for this tutorial.
    We are going to remove the web.xml file from our project. To make maven know that we are not using the web.xml file, We have to mark the property called "failOnMissingWebXml" to true.
    So by the end of this video, we will understand how to configure dispatcher servlet using a class called abstractannotationconfigdispatcherservletinitializer, and also we will deploy our project without a web.xml file.
    #SpringMvc #DispatcherServlet #JavaBasedConfiguration
    Any time you are getting stuck with issues, Feel free to ask for support.
    You can send mail to seleniumexpress@gmail.com
    you can ping me on my Facebook page
    / seleniumexpress
    Make sure to join my private Facebook page
    “SeleniumExpress - Support"
    you can ask for support in my website forum
    www.seleniumex...
    Subscribe to my youtube channel
    / @seleniumexpress
    Music :
    -----------
    credits : -
    (intro)
    Adventures by A Himitsu / a-himitsu
    Creative Commons - Attribution 3.0 Unported- CC BY 3.0
    creativecommons....
    Music released by Argofox • A Himitsu - Adventures...
    Music provided by Audio Library • Adventures - A Himitsu...

Komentáře • 132