경고: 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 에는 아래와 같이 작성
1 2 3 4 5 6 7 8 9 10 11 12 | <!-- 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 |
'멍청멍청기록 > 에러 일기' 카테고리의 다른 글
스프링 작업 중 에러 (0) | 2019.06.24 |
---|---|
스프링 에러) Maven plugin 에러 (2) | 2019.06.01 |
스프링 에러 03] log4j:ERROR 해결방법. (1) | 2019.03.19 |
스프링 에러 02] Log4J 에러 feat.Interceptor (0) | 2019.03.15 |
스프링 에러 01] (1) | 2019.03.14 |