Make Jackson optional in web adapter

There is now a JsonMapper strategy with implementations and
autoconfiguration for Gson and Jackson. If Jackson is present
it is preferred (just like in Spring Boot).

Fixes gh-150
This commit is contained in:
Dave Syer
2018-04-24 11:57:47 +01:00
parent 73cf5d418a
commit 0f8c1ce860
8 changed files with 314 additions and 21 deletions

View File

@@ -23,6 +23,11 @@
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-function-context</artifactId>