-
Lombok annotation processing 설정
window : 왼쪽 상단 위 file -> settings -> build, Execution, Deveployment -> Compiler > Annotation Processors -> Enable annotation prossing 체크
macOS : 왼쪽 상단 위 IntelliJ IDEA -> Preferences -> build, Execution, Deveployment -> Compiler > Annotation Processors -> Enable annotation prossing 체크

-
Java 버전 변경
- 기존 1.8 => 변경 11 Link
-
Spring Boot 버전 변경
- 기존 2.1.6 => 변경 2.3.4
-
@Autowired 제거 생성자 패턴으로 변경
-
UserApiController getMapping 주소 변경
변경전 @Slf4j @RestController @RequestMapping("/api/user") @RequiredArgsConstructor public class UserApiController extends CrudController<UserApiRequest, UserApiResponse, User> { private final UserApiLogicService userApiLogicService; @GetMapping("/{id}/orderInfo") public Header<UserOrderInfoApiResponse> orderInfo(@PathVariable Long id){ return userApiLogicService.orderInfo(id); } @GetMapping("/search") // << 변경할 부분 public Header<List<UserApiResponse>> findAll(@PageableDefault(sort = { "id" }, direction = Sort.Direction.ASC) Pageable pageable){ log.info("{}",pageable); return userApiLogicService.search(pageable); } }변경후 @Slf4j @RestController @RequestMapping("/api/user") @RequiredArgsConstructor public class UserApiController extends CrudController<UserApiRequest, UserApiResponse, User> { private final UserApiLogicService userApiLogicService; @GetMapping("/{id}/orderInfo") public Header<UserOrderInfoApiResponse> orderInfo(@PathVariable Long id){ return userApiLogicService.orderInfo(id); } @GetMapping("") public Header<List<UserApiResponse>> findAll(@PageableDefault(sort = { "id" }, direction = Sort.Direction.ASC) Pageable pageable){ log.info("{}",pageable); return userApiLogicService.search(pageable); } } -
view_file 폴더에 있는 static , templates 폴더를 src / main / resources 로 복사

-
config/ObjectMapperConfig 에서 SNAKE_CASE 로 변경 하도록 설정
@Configuration public class ObjectMapperConfig { @Bean public ObjectMapper objectMapper(){ ObjectMapper mapper = new ObjectMapper(); mapper.registerModule(new JavaTimeModule()); mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); mapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE); // << SNAKE_CASE로 동작 return mapper; } }

