從Spring Boot 2.4.5更新到Spring 2.5.0后,出現報錯:Caused by: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Java 8 date/time type `java.time.Instant` not supported by default: add Module ”com.fasterxml.jackson.datatype:jackson-datatype-jsr310“to enable handling (through reference ,本文主要介紹解決這個錯誤異常方法,以及相關示例代碼。
原文地址:Java 升級Spring Boot 2.5.0報錯Java 8 date/time type `java.time.Instant` not supported by default解決方法