spring-restcontroller

Spring Boot REST path mapping

Spring Boot REST path mapping
I'm just thinking, what is the best practice to create PATH mapping for rest service. Let's say we have following paths:/users POST /users/1 PATCH, GET /users/1/contacts GET, POST /users/1/contacts/1 GET, PATCHThe question is - what is the best pract

Rest Controller not recognizing GET request in Spring Boot App

Rest Controller not recognizing GET request in Spring Boot App
I am trying to implement simple demo MVC app with Spring Boot but I get 404 error while executing the application. The uri is `http://localhost:8080/' which is to display all the rows in a table called circle.Spring Boot : 1.3.3.RELEASEJava Version :

no suitable HttpMessageConverter found for response type [class com.avada.rest.UsersController$Users]

no suitable HttpMessageConverter found for response type [class com.avada.rest.UsersController$Users]
I am getting the following exception and not sure why...Exception in thread "main" org.springframework.web.client.RestClientException: Could not extract response: no suitable HttpMessageConverter found for response type [class com.avada.rest.Use

unable to get different content-types in request mapping using spring framework?

unable to get different content-types in request mapping using spring framework?
Here is my controller class:@Controller @RequestMapping("/actuator") public class HealthController { @RequestMapping(value = "/metrics", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON) @ResponseBody public HealthMode