JoYuKang / Java_Spring

Spring을 활용한 웹 개발
0 stars 0 forks source link

build.gradle #1

Open JoYuKang opened 3 years ago

JoYuKang commented 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());

JoYuKang commented 3 years ago

AllOneServlet 클래스 모든 ObjectMapper objectMapper = new ObjectMapper(); 뒤에 objectMapper.registerModule(new JavaTimeModule());을 삽입하여 오류 해결 성공