I tried sample code to find out how welcome-files actually works depending upon order of declaration in DD(in theory I know how it works).
This is my DD of application WelcomeFiles .
index.html is directly inside WelcomeFiles directory .
So if I type in the url locatlhost:8080/WelcomeFiles it should have displayed index.html but it displays 404.
I think problem is something else even if I am typing locatlhost:8080/WelcomeFiles/index.html exact url match to resource its not showing.