본문 바로가기
카테고리 없음

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

by 쌈빡한 쥬니준 2019. 3. 18.

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

댓글0