quarks
quarks

Reputation: 35276

Error 404 when running sample Spring MVC using Spring STS

I tried running a sample Spring MVC using Spring STS in Eclipse, however when I try to run it on CloudFoundry using my account, when I access the "Mapped URL" I get Error 404

Which should at least show "Hello World" and show the server time.

I wonder why its not running? I don't see any error in the console.

EDIT: This is the complete console log.

Upvotes: 0

Views: 2643

Answers (1)

Arnaud Gourlay
Arnaud Gourlay

Reputation: 4666

Your controller is not detected, i think you forgot to configure spring to scan your application for annotation based controller with :

   <context:component-scan base-package="mypackage.com...."/>
   <context:annotation-config/>

http://renidev.wordpress.com/2009/02/02/how-to-use-springs-context-component-scan-and-annotation/

Upvotes: 1

Related Questions