SpringBootTest1 Kotlin-Spring_Boot 강의 정리) 6. Web Layer https://youtu.be/2e72RHO8ORk?list=PL6gx4Cwl9DGDPsneZWaOFg0H2wsundyGr 가장 상위 레벨인 Web Layer를 배워보도록 하겠습니다. Web Layer에서는 rest mapping을 정의하고 request를 핸들링하며 response를 준비합니다. 이를 위한 적절한 endpoint와 컨트롤러를 준비해줘야 합니다. 이를 위해 controller 패키지와 BankController class를 만들어 줍니다. 컨트롤러 임을 알리기 위해 BankController Class에 @RestController 어노테이션을 달아줍니다. @RestController는 단순히 객체만을 반환하며 객체 데이터는 json 또는 xml로 전송하게 됩니다. @Controller와.. 2023. 1. 30. 이전 1 다음