Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!
  • 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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
 
I've got no option but to sell you all for scientific experiments. Or a tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic