springboot configuration @ResponseBody notes still returning data in xml format

Today, the company began a project, I encountered a problem when springboot integration springcloud, is the comment I added @ResponseBody return to the foreground is xml comment? ? ? One hundred question mark? ? As shown below

 

 Controller is this

 

 Did I guess was dubbed the consumer end of the service? ? How to return xml, Baidu time and see because of the introduction of jackson-dataformat-xml.jar, and quickly see the dependency relationships

 

 Sure enough, I import the parent of this project relies eureka, he included the following jar package, and quickly removed in the parent project, a separate written pom server, otherwise the consumer side also used this has led to the xml data returned

 

 This is normally the

Guess you like

Origin www.cnblogs.com/hjieone/p/11692690.html