简体   繁体   中英

All pages are giving 404 Error in Postman for Spring Boot application using Maven

https://github.com/SREEJA-PALLA/SpringBootCoursesAPI/tree/master

I'm getting a 404 error in postman this is my project.

{ "timestamp": "2021-05-18T17:46:24.979+00:00", "status": 404, "error": "Not Found", "message": "", "path": "/topics" }

I checked the dependencies and also tried many ways but nothing seemed to work. Can someone please help? Thank you in advance.

You have annotated your main application class with

@ComponentScan({"com.delivery.request"})

But this package does not exist in your codebase. So Spring does not find the Controller that you want it to find. This is in the package com.example.courseData.topic .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM