Open JoYuKang opened 3 years ago
build.gradle에 추가
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.9.4' or implementation 'org.springframework.boot:spring-boot-starter-tomcat:2.12.4' or AllOneServlet 클래스에 ObjectMapper 추가 ObjectMapper objectMapper = new ObjectMapper(); objectMapper.registerModule(new JavaTimeModule());
AllOneServlet 클래스 모든 ObjectMapper objectMapper = new ObjectMapper(); 뒤에 objectMapper.registerModule(new JavaTimeModule());을 삽입하여 오류 해결 성공
build.gradle에 추가
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.9.4'
or
implementation 'org.springframework.boot:spring-boot-starter-tomcat:2.12.4' or
AllOneServlet 클래스에 ObjectMapper 추가
ObjectMapper objectMapper = new ObjectMapper(); objectMapper.registerModule(new JavaTimeModule());