• Post Reply Bookmark Topic Watch Topic
  • New Topic

URL mapping not triggering controller  RSS feed

 
Zahro Alfelpha
Ranch Hand
Posts: 67
1
Java Linux Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am following along in the book Spring in Action trying to build the Spittr application. I created my configuration classes and home controller, but when I call localhost:8080/ I get a 404.

Project layout



SpittrWebAppInitializer.java



WebConfig.java



RootConfig.java



HomeController.java



web.xml
(I removed the config that eclipse put in here by default when making a new Spring Web MVC projectbecause it was complaining about multiple context listeners)


I have tried navigating to `http://localhost:8080/Spittr/`, `http://localhost:8080/`, and `http://localhost:8080`. All result in a 404. No exceptions show up in the Java console though, so it's like its not even registering the request.

This is a part of what the console prints when I run my application


What do I need to do to get my application running? Thanks!

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!