简体   繁体   中英

Post method 400 bad request error angular spring boot

been stucked for a day with this problem and i dont anyone to ask, so i made account on stack overflow. I need help in exporting my data, making user login report. I checked everything few times, and all i get is POST 400 error. I need to make report from 3 parameters, caseDateFrom (the period of report that i get from front), and same for caseDateTo. Last parameter is a List of users that i got from a selection on front too. this is url that i get from error:

POST

 http://127.0.0.1:9000/wo/pisarnica/userLogin/printUsers/sr_RS/1632175200000/1636388909029 

400 (Bad Request)


this is some piece of code: [UserLoginController][1]

UserLoginService enter image description here

enter image description here

If i forgot something, and you need it to be able to help me, dont hesitate to reply please, i will be very grateful. Greetings from Serbia!

After looking into Spring boot controller image, I guess the issue is with your back-end controller.

You have forgot to add @PostMapping in your controller.

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