Skip to content
Advertisement

Accessing Spring RestApi using POSTMAN (404 not found)

I’m trying to access a simple api using POSTMAN but every time it give the error 404 not found. What can I do to access my api?

JavaScript

This is my PostApi class,

My main class is in BloggApplication.java.

I call the API using POSTMAN as this,

JavaScript

with body

JavaScript

Advertisement

Answer

I solved the issue I moved Application class which contains the “springboot application” one level above other classes.

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement