form 3

[SpringBoot] OpenAPI 3.0 구성하기! (swagger-ui)

# OpenAPI 3.0 example code - 2 (swagger-ui) 이전 설정인 https://hjho95.tistory.com/39 에서 OpenAPI에 대한 pom.xml, application.yml, Configuration을 작성하여 기동해보는 걸 해보았다. 이번에는 Document 내에 들어가는 해당 API의 설명, 정의 등 작성해보는 시간이다. https://hjho95.tistory.com/39 는 OpenAPI를 사용하기 위한 설정. https://hjho95.tistory.com/40 은 Annotation을 이용한 Document작성. https://hjho95.tistory.com/41 은 ApiResponse의 ref 구현. # Refference document: ht..

스프링 부트 2023.01.14

[SpringBoot] ajax - multipart/form-data 로 요청하기!

# ajax - multipart/form-data jQuery ajax 의 contentType이 multipart/form-data 일 때, FormData 와 MultipartFile 를 이용하여 file 데이터 맵핑하기! # 환경 /** * tool: STS 4.13.0 * version: 2.7.3-SNAPSHOT * java: 1.8 * type: MAVEN * view: THYMELEAF * jQuery: 3.6.0 */ # page # html (일부분 발췌) 파일 테스트 페이지 입니다. file one file list # function (일부분 발췌) $(document).ready(function() { $('#formFileOne').on('submit', function(even..

스프링 부트 2022.08.14

[SpringBoot] ajax - html form tag 로 요청하기!

# jQuery Ajax(form tag) Spring Boot html form tag 를 이용하여 ajax 통신하기! # 환경 /** * tool: STS 4.13.0 * version: 2.7.3-SNAPSHOT * java: 1.8 * type: MAVEN * view: THYMELEAF * jQuery: 3.6.0 */ # page # html (일부분 발췌) form element submit # function (일부분 발췌) const test = { form: function(type) { sendForm(`/test/send/${type}`, $('#formSend'), function(result) { console.log(result.text); console.log(result.h..

스프링 부트 2022.08.13