spring mvc request not available error -


    @bean         public viewresolver viewresolver()         {             internalresourceviewresolver resolver=new internalresourceviewresolver();             resolver.setprefix("web-inf/views");             resolver.setsuffix(".jsp");             resolver.setexposecontextbeansasattributes(true);             return resolver;         }      @requestmapping(value="/events/{id}")         public string showevent(@pathvariable("id") int id)         {             return "/events/show";         }  o/p: when use url: http://localhost:8080/tracker/events/1 http status 404 - /tracker/events/web-inf/views/events/show.jsp type status report message /tracker/events/web-inf/views/events/show.jsp description requested resource not available. apache tomcat/7.0.56 

i using spring 4.1 java configuration , annotations. there thing wrong configuration?


Comments

Popular posts from this blog

android - Gradle sync Error:Configuration with name 'default' not found -

java - Andrioid studio start fail: Fatal error initializing 'null' -

html - jQuery UI Sortable - Remove placeholder after item is dropped -