Caused by: java.lang.NoClassDefFoundError: com/fasterxml/jackson/datatype/jsr310/ser/ZoneIdSerializer
启动springboot一直不成功。
原因是spring-boot-starter-web的版本过高,应该是和另一个jar包版本冲突。
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<version>2.1.6.RELEASE</version>
<scope>compile</scope>
</dependency>
此前用的2.5.5太高,2.3.2也是过高,最后换成2.1.6版本的,可以正常运行。
参考:https://blog.csdn.net/HezhezhiyuLe/article/details/114576750