I am getting a 406 Not Acceptable error for my spring-boot actuator endpoints like /health, /env, /info etc
I am using spring-boot version 1.5.8
Accessing endpoints like http://localhost:6061/health http://localhost:6061/env
Here is bits of my gradle build file
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")