Size: a a a

Spring Framework and more

2020 June 03

LL

Lionel Lawrence in Spring Framework and more
источник

LL

Lionel Lawrence in Spring Framework and more
Lionel Lawrence
2020-06-03 22:54:59.127  WARN 8134 --- [nio-8080-exec-6] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved [org.springframework.web.HttpRequestMethodNotSupportedException: Request method 'POST' not supported]
Anyone who knows how to tackle this error, please reply
источник

AE

Alexandr Emelyanov in Spring Framework and more
Lionel Lawrence
2020-06-03 22:54:59.127  WARN 8134 --- [nio-8080-exec-6] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved [org.springframework.web.HttpRequestMethodNotSupportedException: Request method 'POST' not supported]
you should call it with DELETE emthod, not POST
источник

AE

Alexandr Emelyanov in Spring Framework and more
show your call code
источник

LL

Lionel Lawrence in Spring Framework and more
If u see in this, im calling it using DELETE
источник

AE

Alexandr Emelyanov in Spring Framework and more
Lionel Lawrence
If u see in this, im calling it using DELETE
you define it with DELETE, but call with POST (in error message)
источник

LL

Lionel Lawrence in Spring Framework and more
Alexandr Emelyanov
you define it with DELETE, but call with POST (in error message)
U are specifying the html code?
источник

LL

Lionel Lawrence in Spring Framework and more
#cymera
источник

C

Cyclone in Spring Framework and more
Show a chrome network record.
источник

C

Cyclone in Spring Framework and more
Also that log line may be from another event.
источник

LL

Lionel Lawrence in Spring Framework and more
I'll send it tmr as I've switched off my lap. But i have another method in my controller having same mapping. The problem comes from the request mapping. The ideal situation would be when the delete button is clicked, the image in the database should be deleted, if the current user is same as the user who has created the post. If not, it is rerouted to the same page.
источник

RS

Ruslan Stelmachenko in Spring Framework and more
AFAIK most browser (maybe all) only support POST and GET as method attribute value of the <form> tag. So, delete is just incorrect value here. The default value is get, so this form should result in get request actually, not post. But the only way to be sure is to check Network tab in Browser's dev-Tools.
источник

ES

Eduard Stepanyan in Spring Framework and more
Ребят, выучил spring mvc, теперь хочется изучить микросервисы, с чего начать(кроме книг, я про практику)?
источник
2020 June 04

C

Cyclone in Spring Framework and more
Actually HTML form doesn't support DELETE method. Only GET and POST.
источник

LL

Lionel Lawrence in Spring Framework and more
Ruslan Stelmachenko
AFAIK most browser (maybe all) only support POST and GET as method attribute value of the <form> tag. So, delete is just incorrect value here. The default value is get, so this form should result in get request actually, not post. But the only way to be sure is to check Network tab in Browser's dev-Tools.
👍
источник

LL

Lionel Lawrence in Spring Framework and more
Cyclone
Actually HTML form doesn't support DELETE method. Only GET and POST.
👍
источник

AK

Anton Krasnov in Spring Framework and more
а кто работал с телеграмом, подскажите как при отправке сообщения передается переход нановую строчку если нужно отправить текст с новой строки?
источник

AK

Anton Krasnov in Spring Framework and more
curl --request 'POST' "https://api.telegram.org/botтокен/sendMessage?chat_id=452180061&text=Печеньки вот это нужно с новой строки"
источник

AE

Alexandr Emelyanov in Spring Framework and more
как это относится к спрингу?
источник

S

Seryh in Spring Framework and more
Anton Krasnov
а кто работал с телеграмом, подскажите как при отправке сообщения передается переход нановую строчку если нужно отправить текст с новой строки?
зачем вообще ковырять сырое api если есть готовая либа? -> telegrambots-spring-boot-starter
источник