How to configure JPA with JPQL in Spring Boot Application - “can't resolve symbol..”
问题 I have a dependency spring-boot-starter-data-jpa Configuration for JPA is inside application.properties : spring.datasource.url=jdbc:mysql://localhost:3306/db?serverTimezone=UTC spring.datasource.username=name spring.datasource.password=pass ... When I create @Entity: @Entity @Table(name="cats") public class Cat { @Column(name="age") private int age; .... } It works well. When i try to use JPQL : "select cat from Cat cat" Intellij idea emphasizes it and says "Can't resolve symbol Cat" , I