我能够根据以下链接修复此问题: https://github.com/indrabasak/spring-consul-example/blob/master/client/README.md ,我们应严格使用以下属性,以避免出现以下错误。
management.security.enabled=false management.health.consul.enabled=false
http://localhost:8098//getSchoolDetails/abcschool
我得到的输出是::
School Name - abcschool ::: Student Details [{"name":"Sajal","className":"Class IV"},{"name":"Lokesh","className":"Class V"}] - Thu Apr 12 15:47:53 IST 2018