spring-attic / tut-react-and-spring-data-rest

React.js and Spring Data REST :: A tutorial based on the 5-part blog series by Greg Turnquist
https://spring.io/guides/tutorials/react-and-spring-data-rest
883 stars 1.58k forks source link

api dose not return resource details #55

Closed suleimana closed 6 years ago

suleimana commented 7 years ago

Issue: basic example dose not return employee details (such as firstName, lastName) . it looks something like this :

$ curl localhost:8080/api/employees
{
  "_embedded" : {
    "employees" : [ {
      "_links" : {
        "self" : {
          "href" : "http://localhost:8080/api/employees/1"
        }
      }
    } ]
  }
}

Solution Update to "spring-boot-starter-parent" version from 1.5.1.RELEASE to 1.5.3.RELEASE in pom.xml#L10

ytian90 commented 7 years ago

Use ./mvnw spring-boot:run also solve the issue for me.

tomhickerson commented 6 years ago

Employee data doesn't show with 1.5.10.RELEASE, should I have to roll back to the above version?

gregturn commented 6 years ago

Just bumped everything to Spring Boot 1.5.12.RELEASE and it showed the data perfectly.

ghost commented 6 years ago

https://stackoverflow.com/questions/11803948/lombok-is-not-generating-getter-and-setter