멍청멍청기록/에러 일기

스프링 에러 03] interceptor 설정 에러

  • -
728x90
반응형

경고: 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







출처 : https://m.blog.naver.com/PostView.nhn?blogId=ubin0111&logNo=220918409397&proxyReferer=https%3A%2F%2Fwww.google.com%2F

반응형
Contents

포스팅 주소를 복사했습니다

이 글이 도움이 되었다면 공감 부탁드립니다.