Programming16 [Spring Boot] Maven 프로젝트 Heroku 에 배포하기 * 메모용입니다. 회사에서 로컬 환경에서 개발 중인 스프링 부트 프로젝트를 빠르게 배포하여 확인해보고 싶었다. 프론트 개발자 분도 현재까지 완성된 프로젝트를 Netlify 에 우선적으로 테스트를 위해 배포해놓은 상태였고, 스프링 부트도 배포하여 전체적인 프로젝트의 윤곽이 어떻게 보일지 확인해보고자 하였다. 초기에는 CI/CD 서버를 구축하여 한번에 전반적인 세팅까지 끝내볼까 했지만, 비용도 그렇고 시간도 넉넉치 않은 탓에 추후 일정으로 미뤄두고 빠르게 배포할 수 있는 방법을 찾게되었다. 본 포스팅은 다음과 같은 Step 에 대해 다룬다. 스프링 부트와 Maven 으로 구성된 매우 간단한 서버를 배포해본다. .properties 혹은 .yml 에서 사용되는 외부 환경 변수도 헤로쿠를 활용하여 주입해본다. .. 2022. 7. 1. 스프링 Multipart Form Data JSON 형태로 받기 통상적으로 멀티파트 파일을 처리하기 위해서는 스프링의 Controller 내 Annotation으로 @RequestPart 를 사용한다. 이때, 파일 이외의 JSON 데이터를 DTO의 형태로 받는데, JSON 형태로 전달받고 싶다면 DTO의 형태는 기존과 동일하게 작성하고 package egovframework.lms.course.dto.request; import egovframework.lms.course.domain.model.Course; import io.swagger.annotations.ApiModelProperty; import lombok.*; import org.springframework.web.multipart.MultipartFile; import javax.persistence... 2022. 5. 10. ResponseBodyAdvice - Swagger 2 with Security 해결!!!! https://stackoverflow.com/questions/47425048/why-does-springfox-swagger2-ui-tell-me-unable-to-infer-base-url Why does springfox-swagger2 UI tell me "Unable to infer base url." Why does springfox-swagger2 UI tell me Unable to infer base url. As far as I know, I am using a typical Swagger spring-boot configuration. As you can see in the screenshot, the swagger-fox url stackoverflow.com 스프링 시큐리티를 사.. 2022. 4. 29. Dynamically Input Tag 생성 시 State 관리하는 법 https://www.cluemediator.com/add-or-remove-input-fields-dynamically-with-reactjs Add or remove input fields dynamically with ReactJS - Clue Mediator Add or remove input fields dynamically with ReactJS, Adding Multiple Input Fields in React JS, react dynamic form generation, react add component on click www.cluemediator.com 2021. 11. 2. 이전 1 2 3 4 다음