경고: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jsonView': Failed to introspect bean class [org.springframework.web.servlet.view.json.MappingJackson2JsonView] for lookup method metadata: could not find class that it depends on; nested exception is java.lang.NoClassDefFoundError: com/fasterxml/jackson/core/jsongenerator
→ Jackson core lib 추가
경고: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jsonView': Failed to introspect bean class [org.springframework.web.servlet.view.json.MappingJackson2JsonView] for lookup method metadata: could not find class that it depends on; nested exception is java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/ObjectMapper
→ Jackson databind lib 추가
pom.xml 에는 아래와 같이 작성
| <!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-core --> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-core</artifactId> <version>2.9.8</version> </dependency> <!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind --> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> <version>2.9.8</version> </dependency> | cs |
출처 : https://m.blog.naver.com/PostView.nhn?blogId=ubin0111&logNo=220918409397&proxyReferer=https%3A%2F%2Fwww.google.com%2F