ERROR 406 page: HTTP
CodePudding user response:
Post your screenshots of the request and responseCodePudding user response:
Information you provide is limited, but 406 is the client is unusual, 406 refers to the content of the request returns does not meet your request in the Accept header definition, for example/physical/Prometheus need to Accept: text/plain, I guess you are either Accept write wrong, or is likely to be the introduction of processing json jar, cause/physical/Prometheus returns json, rather than the textCodePudding user response:
Application. Yml file configuration belowManagement:
Endpoints:
Web:
Exposure:
Include: the info, the health, Prometheus
Server:
The servlet:
The context path:/
Port: 17001
Pom. The XML below introduction
CodePudding user response: