Things are getting closer. I've added @ComponentScan, and according to the logging it's instantiating my controllers and wiring up my model objects and DAOs, but it's still not mapping requests. I still have to figure out how to properly instantiate the sessionFactory and set up the transaction stuff, but for now I just want to get the mapping to work.
I see this in the logs:
Code:
03:03:59.233 DEBUG web.servlet.handler.AbstractDetectingUrlHandlerMapping (AbstractDetectingUrlHandlerMapping.java:71) Looking for URL mappings in application context: WebApplicationContext for namespace 'dispatcher-servlet': startup date [Thu Dec 13 03:03:58 PST 2012]; parent: Root WebApplicationContext
...
03:03:59.235 DEBUG web.servlet.handler.AbstractDetectingUrlHandlerMapping (AbstractDetectingUrlHandlerMapping.java:86) Rejected bean name 'mainController': no URL paths identified
03:03:59.235 DEBUG web.servlet.handler.AbstractDetectingUrlHandlerMapping (AbstractDetectingUrlHandlerMapping.java:86) Rejected bean name 'serviceController': no URL paths identified
...
even though a little earlier in the logs I have this:
Code:
...
03:03:59.174 INFO web.servlet.handler.AbstractHandlerMethodMapping (AbstractHandlerMethodMapping.java:186) Mapped "{[/ || /Main],methods=[GET || HEAD],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String com.latencyzero.gamecenter.web.MainController.main()
03:03:59.181 INFO web.servlet.handler.AbstractHandlerMethodMapping (AbstractHandlerMethodMapping.java:186) Mapped "{[/service/],methods=[GET],params=[],headers=[],consumes=[],produces=[application/json;charset=UTF-8],custom=[]}" onto public org.springframework.http.ResponseEntity<java.lang.String> com.latencyzero.gamecenter.web.ServiceController.getRoot() throws java.lang.Exception
...