title: Spring-boot Actuator endpoints - 406 Not Acceptable
body: <p>I am getting a 406 Not Acceptable error for my spring-boot actuator endpoints like /health, /env, /info etc</p>
  
  <p>I am using spring-boot version 1.5.8</p>
  
  <p>Accessing endpoints like
  <a href="http://localhost:6061/health" rel="nofollow noreferrer">http://localhost:6061/health</a>
  <a href="http://localhost:6061/env" rel="nofollow noreferrer">http://localhost:6061/env</a></p>
  
  <p>Here is bits of my gradle build file</p>
  
  <pre><code>buildscript {            
  ext {            
      springBootVersion = '1.5.8.RELEASE'            
  }                
  dependencies {                        
      classpath(group: 'org.springframework.boot', name: 'spring-boot- 
  gradle-plugin', version:'1.5.8.RELEASE')            
  }            
  }                  
  repositories {            
  mavenLocal()            
  maven {            
      url "${artifactory_url}" + "libs-release"            
      credentials {            
          username = "${artifactory_user}"            
          password = "${artifactory_password}"            
      }            
  }            
  maven {            
      url "${artifactory_url}" + "libs-snapshot"            
      credentials {            
          username = "${artifactory_user}"            
          password = "${artifactory_password}"            
      }            
  }                   
  }       
  apply plugin: 'com.jfrog.artifactory'            
   apply plugin: 'java'                                 
  apply plugin: 'org.springframework.boot'            
  apply plugin: 'project-report'     
  dependencies {               
  compile("org.apache.commons:commons-csv:1.4")            
  runtime 'com.google.guava:guava:19.0'                        
   compile fileTree(dir: 'src/libs/', include: '*.jar')                      
  compile("org.springframework.cloud:spring-cloud-stream:1.2.2.RELEASE")            
  compile('org.springframework.cloud:spring-cloud-starter-hystrix- 
  dashboard:1.3.1.RELEASE')            
  compile('org.springframework.cloud:spring-cloud-starter- 
  hystrix:1.3.1.RELEASE')            
  compile('org.springframework.cloud:spring-cloud-starter- 
  eureka:1.3.1.RELEASE')            
  compile('org.springframework.cloud:spring-cloud-starter- 
  turbine:1.3.1.RELEASE')                  
  compile("org.springframework.boot:spring-boot-starter-actuator")                   
  </code></pre>