Guest User

Untitled

a guest
Feb 25th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. "exception": "org.springframework.dao.InvalidDataAccessResourceUsageException",
  2. "message": "could not extract ResultSet; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet"
  3.  
  4. <dependency>
  5. <groupId>org.postgresql</groupId>
  6. <artifactId>postgresql</artifactId>
  7. <scope>runtime</scope>
  8. </dependency>
  9.  
  10. spring.datasource.driverClassName=org.postgresql.Driver
  11. spring.datasource.url=jdbc:postgresql://localhost:5432/postgres
  12. spring.datasource.username=postgres
  13. spring.datasource.password=
  14. spring.jpa.hibernate.ddl-auto=create-drop
  15.  
  16. @RequestMapping(method = RequestMethod.GET)
  17. public List<User> findAllUser(){
  18. return userRepository.findAll();
  19. }
Add Comment
Please, Sign In to add comment