• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

This application has no explicit mapping for /error, so you are seeing this as a fallback

 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
""Whitelabel Error Page

This application has no explicit mapping for /error, so you are seeing this as a fallback.

Sat Sep 30 11:56:24 IST 2017
There was an unexpected error (type=Not Found, status=404).
No message available""

Above is the error I am getting despite i have solved this earlier for differrent project but I m unable to do it for this one. I am pasting the necessary code that might be faulty below. Please any suggestion will be appreciated. Thanks in advance.


BookController.java in controller package


AdminportalApplication.java in com package


BookService whch is an interface in service package


BookServiceimpl is an implementation class of above interface in service.impl package


The controller package has two controller classes 1. Controller.java and 2. HOmeController. I m thinking that it is looking for the mapping in wrong controller or something. please help...
 
VarunS Singh
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Actually the problem is getting solved by making different packges for each controller. why is that so?
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try by Replacing this in your AdminportalApplication.java class

@ComponentScan({ "com.adminportal.controller", "com.adminportal.service" })

this worked for me
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic