<dependency>
<groupId>com.sendgrid</groupId>
<artifactId>sendgrid-java</artifactId>
<version>4.0.1</version>
</dependency>
</dependencies>
当我尝试添加sendgrid依赖项时出现以下异常
org.springframework.beans.factory.BeanCreationException: Error creating bean with name com/fasterxml/jackson/databind/exc/InvalidDefinitionException
答案 0 :(得分:0)
确保pom.xml中具有以下依赖项
尝试使用最新的com.fasterxml.jackson.core/jackson-databind
。
<!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind -->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.9.4</version>
</dependency>