๐ก HTTP form์์๋ get, post๋ง ์ง์ํ๋ค!
1) application.properties์ ์๋์ ์ค์ ๊ฐ ์ถ๊ฐ
spring.mvc.hiddenmethod.filter.enabled=true
2) html์ ์๋ ์ฝ๋ ์ถ๊ฐ
<input type="hidden" name="_method" value="PUT">
์์
<form role="form" method="post" enctype="multipart/form-data" th:action="@{/boards/{id}(id=${boardFormDto.id})}" th:object="${boardFormDto}">
<input type="hidden" name="_method" value="PUT">
'Web & Android > SpringBoot' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[SpringBoot] log ๋์์ธ ๋ณ๊ฒฝํ๋ ๋ฐฉ๋ฒ (์ฝ๋) (0) | 2023.10.13 |
---|---|
[SpringBoot] Validation (0) | 2023.10.13 |
[SpringBoot] REST API (0) | 2023.10.13 |
[SpringBoot] Bean (0) | 2023.10.13 |
[SpringBoot] ์ค์ผ์ค๋ง (1) | 2023.10.13 |