Browse Source

Exclude jackson XML from eureka client by default

Any client that wants to can include it back again, but generally
it only causes problems (XML returned from apps instead of
JSON by Spring MVC for instance). In general it only causes problems
for services whose clients use "Accept: application/xml,*/*", for
instance (like a browser).

See gh-306
pull/6/head
Dave Syer 9 years ago
parent
commit
bc0eef9ae2
  1. 4
      spring-cloud-netflix-dependencies/pom.xml
  2. 4
      spring-cloud-netflix-eureka-server/pom.xml
  3. 4
      spring-cloud-starter-eureka-server/pom.xml

4
spring-cloud-netflix-dependencies/pom.xml

@ -283,6 +283,10 @@ @@ -283,6 +283,10 @@
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
</exclusion>
<exclusion>
<artifactId>jackson-dataformat-xml</artifactId>
<groupId>com.fasterxml.jackson.dataformat</groupId>
</exclusion>
</exclusions>
</dependency>
<!-- Eureka core dep that is now optional -->

4
spring-cloud-netflix-eureka-server/pom.xml

@ -83,6 +83,10 @@ @@ -83,6 +83,10 @@
<artifactId>javax.inject</artifactId>
</dependency>
<!-- Eureka deps that are now optional in eureka -->
<dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-xml</artifactId>
</dependency>
<dependency>
<groupId>com.thoughtworks.xstream</groupId>
<artifactId>xstream</artifactId>

4
spring-cloud-starter-eureka-server/pom.xml

@ -40,9 +40,5 @@ @@ -40,9 +40,5 @@
<groupId>com.netflix.ribbon</groupId>
<artifactId>ribbon-eureka</artifactId>
</dependency>
<dependency>
<groupId>com.thoughtworks.xstream</groupId>
<artifactId>xstream</artifactId>
</dependency>
</dependencies>
</project>

Loading…
Cancel
Save