Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "exception": "org.springframework.dao.InvalidDataAccessResourceUsageException",
- "message": "could not extract ResultSet; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet"
- <dependency>
- <groupId>org.postgresql</groupId>
- <artifactId>postgresql</artifactId>
- <scope>runtime</scope>
- </dependency>
- spring.datasource.driverClassName=org.postgresql.Driver
- spring.datasource.url=jdbc:postgresql://localhost:5432/postgres
- spring.datasource.username=postgres
- spring.datasource.password=
- spring.jpa.hibernate.ddl-auto=create-drop
- @RequestMapping(method = RequestMethod.GET)
- public List<User> findAllUser(){
- return userRepository.findAll();
- }
Add Comment
Please, Sign In to add comment