spring boot项目报错,
问题:Error creating bean with name 'userRepository' defined in com.example.demo.repository.UserRepository defined in @EnableJpaRepositories declared on JpaRepositoriesRegistrar.EnableJpaRepositoriesConfiguration,Not a managed type: class com.example.demo.domain.User
解决方案:把import javax.persistence.*;换成import jakarta.persistence.*;