Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring annotation no handler found

 
juniad Ahmed
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have build HelloWorld spring annotation based app using netbeans 6.8 which has spring 2.5 spring plugin.

I gives the following error while trying to see the application through browser.
" Jul 2, 2011 12:39:55 PM org.springframework.web.servlet.DispatcherServlet noHandlerFound
WARNING: No mapping for [/SpringAnnotCollabera/helloworld.htm] in DispatcherServlet with name 'dispatcher'
"

My code is



Please do help me out as i have to use spring annotation in my project. its urgent
 
Rishi Shehrawat
Ranch Hand
Posts: 218
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think your request mapping needs to be done with /helloworld.htm
 
juniad Ahmed
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
tried using

@RequestMapping("/helloworld")

but still no help
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
juniad Ahmed wrote:tried using

@RequestMapping("/helloworld")

but still no help


Re read his post. He said with ".htm"

You forgot to add that part

@RequestMapping("/helloworld.htm")

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic