without Error in my code i am getting error in postaman @PostMappingSend a timstamp in JSON via PostmanSending url encoded string in POST request using node.jsSpring Tool Suite ignores @GetMapping @PostMappingPost request work in postman chrome fine, but in native postman I keep getting System.NullReferenceExceptionASP.Net Core 2.0 API Response hangs with large json payloadResful APi ouput is changing from JSON to XML when we send BAD Request status as output@FormDataParam(“file”) InputStream uploadedInputStream …getting org.glassfish.jersey.server.model.ModelValidationExceptionhow to authenticate to Azure time series insights query API?Spring @PostMapping throws HttpRequestMethodNotSupportedExceptionValidate that string is string and number is number
If a person claims to know anything could it be disproven by saying 'prove that we are not in a simulation'?
Is a USB 3.0 device possible with a four contact USB 2.0 connector?
Why does auto deduce this variable as double and not float?
Units of measurement, especially length, when body parts vary in size among races
Does writing regular diary entries count as writing practice?
Do I need to start off my book by describing the character's "normal world"?
How does the Moon's gravity affect Earth's oceans despite Earth's stronger gravitational pull?
Typesetting "hollow slash"
Output the list of musical notes
What are some tips and tricks for finding the cheapest flight when luggage and other fees are not revealed until far into the booking process?
How would armour (and combat) change if the fighter didn't need to actually wear it?
What is a "soap"?
Build a mob of suspiciously happy lenny faces ( ͡° ͜ʖ ͡°)
Good way to stop electrolyte tabs from turning into powder?
How do I pass a "list of lists" as the argument to a function of the form F[x,y]?
Why does "auf der Strecke bleiben" mean "to fall by the wayside"?
Does the Haste spell's hasted action allow you to make multiple unarmed strikes? Or none at all?
Can anyone help me what's wrong here as i can prove 0 = 1?
What are these panels underneath the wing root of a A380?
Unconventional examples of mathematical modelling
Is there a word for returning to unpreparedness?
Why do we use low resistance cables to minimize power losses?
What is the purpose/function of this power inductor in parallel?
What's a good pattern to calculate a variable only when it is used the first time?
without Error in my code i am getting error in postaman @PostMapping
Send a timstamp in JSON via PostmanSending url encoded string in POST request using node.jsSpring Tool Suite ignores @GetMapping @PostMappingPost request work in postman chrome fine, but in native postman I keep getting System.NullReferenceExceptionASP.Net Core 2.0 API Response hangs with large json payloadResful APi ouput is changing from JSON to XML when we send BAD Request status as output@FormDataParam(“file”) InputStream uploadedInputStream …getting org.glassfish.jersey.server.model.ModelValidationExceptionhow to authenticate to Azure time series insights query API?Spring @PostMapping throws HttpRequestMethodNotSupportedExceptionValidate that string is string and number is number
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I write code for Restful services.in postman when i tried to send a request by using @Postmapping its getting error in postaman
this is my controller class
public class BookController
private BookRepository bookrepository;
@PostMapping("/addBook")
public String save(@RequestBody Book book)
bookrepository.save(book);
return "added book with id"+book.getId();
@GetMapping("/findAllBooks")
public List<Book> getBooks()
return bookrepository.findAll();
@DeleteMapping("/delete")
public String deleteBook(@PathVariable int id)
bookrepository.deleteById(id);
return "book deleted"+id;
when i send a request to postman by post method at the time i m getting a error like the below
"timestamp": "2019-03-27T12:22:20.319+0000",
"status": 404,
"error": "Not Found",
"message": "No message available",
"path": "/addBook"
postman spring-tool-suite
add a comment |
I write code for Restful services.in postman when i tried to send a request by using @Postmapping its getting error in postaman
this is my controller class
public class BookController
private BookRepository bookrepository;
@PostMapping("/addBook")
public String save(@RequestBody Book book)
bookrepository.save(book);
return "added book with id"+book.getId();
@GetMapping("/findAllBooks")
public List<Book> getBooks()
return bookrepository.findAll();
@DeleteMapping("/delete")
public String deleteBook(@PathVariable int id)
bookrepository.deleteById(id);
return "book deleted"+id;
when i send a request to postman by post method at the time i m getting a error like the below
"timestamp": "2019-03-27T12:22:20.319+0000",
"status": 404,
"error": "Not Found",
"message": "No message available",
"path": "/addBook"
postman spring-tool-suite
Is your BookController class annotated with@Controller
or@RestController
?
– Martin Lippert
Mar 28 at 6:44
@RestController public class BookController {
– SIVA
Mar 28 at 7:14
add a comment |
I write code for Restful services.in postman when i tried to send a request by using @Postmapping its getting error in postaman
this is my controller class
public class BookController
private BookRepository bookrepository;
@PostMapping("/addBook")
public String save(@RequestBody Book book)
bookrepository.save(book);
return "added book with id"+book.getId();
@GetMapping("/findAllBooks")
public List<Book> getBooks()
return bookrepository.findAll();
@DeleteMapping("/delete")
public String deleteBook(@PathVariable int id)
bookrepository.deleteById(id);
return "book deleted"+id;
when i send a request to postman by post method at the time i m getting a error like the below
"timestamp": "2019-03-27T12:22:20.319+0000",
"status": 404,
"error": "Not Found",
"message": "No message available",
"path": "/addBook"
postman spring-tool-suite
I write code for Restful services.in postman when i tried to send a request by using @Postmapping its getting error in postaman
this is my controller class
public class BookController
private BookRepository bookrepository;
@PostMapping("/addBook")
public String save(@RequestBody Book book)
bookrepository.save(book);
return "added book with id"+book.getId();
@GetMapping("/findAllBooks")
public List<Book> getBooks()
return bookrepository.findAll();
@DeleteMapping("/delete")
public String deleteBook(@PathVariable int id)
bookrepository.deleteById(id);
return "book deleted"+id;
when i send a request to postman by post method at the time i m getting a error like the below
"timestamp": "2019-03-27T12:22:20.319+0000",
"status": 404,
"error": "Not Found",
"message": "No message available",
"path": "/addBook"
postman spring-tool-suite
postman spring-tool-suite
asked Mar 27 at 12:34
SIVASIVA
11 bronze badge
11 bronze badge
Is your BookController class annotated with@Controller
or@RestController
?
– Martin Lippert
Mar 28 at 6:44
@RestController public class BookController {
– SIVA
Mar 28 at 7:14
add a comment |
Is your BookController class annotated with@Controller
or@RestController
?
– Martin Lippert
Mar 28 at 6:44
@RestController public class BookController {
– SIVA
Mar 28 at 7:14
Is your BookController class annotated with
@Controller
or @RestController
?– Martin Lippert
Mar 28 at 6:44
Is your BookController class annotated with
@Controller
or @RestController
?– Martin Lippert
Mar 28 at 6:44
@RestController public class BookController {
– SIVA
Mar 28 at 7:14
@RestController public class BookController {
– SIVA
Mar 28 at 7:14
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55377325%2fwithout-error-in-my-code-i-am-getting-error-in-postaman-postmapping%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55377325%2fwithout-error-in-my-code-i-am-getting-error-in-postaman-postmapping%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Is your BookController class annotated with
@Controller
or@RestController
?– Martin Lippert
Mar 28 at 6:44
@RestController public class BookController {
– SIVA
Mar 28 at 7:14