going to http://localhost:8080/hopeThisWorks yields the following msg in my eclipse console:
WARN [springframework.web.servlet.PageNotFound-noHandlerFound] - No mapping found for HTTP request with URI [/hopeThisWorks/] in DispatcherServlet with name 'spring-dispatcher'
I've googled up quite a few similar problems, seems it's tricky to get right, structure and names all have to jibe, could use some help please.
And on a tangential topic, is it considered best-practice to make use of a WebApplicationInitializer or not? Obviously I'm doing this all by hand but maybe there's a better way.
Found out my problem wasn't with the code at all, but rather with me not remembering to Project->Maven->Update Project after changing the <build><finalName> value . So the old value for the context-root embedded in my project's .settings file was still on hopeThisWorks. So of course trying http://localhost:8080/webspringtester drew a 404.
Solution is to explictly set the name of the context-root in <build><plugins><plugin><maven-war-plugin><configuration><warName> . This overrides what you may have set using <build><finalName> in your pom.
Thanks for your replies,
An elephant? An actual elephant. Into the apartment. How is the floor still here. Hold this tiny ad:
a bit of art, as a gift, that will fit in a stocking