Chào mọi người, em bị lỗi ở trên khi thêm một cái method findOneByCode() như này.
public interface PopularRepository extends JpaRepository<PopularEntity, Long> {
PopularEntity findOneByCode(String code);
}
Trước đó em cũng có thêm một cái interface y chang vậy nhưng cái đó thì chạy được.
public interface CategoryRepository extends JpaRepository<CategoryEntity, Long> {
CategoryEntity findOneByCode(String code);
}
Cái interface CategoryRepository mặc dù có method findOneByCode() thì nó vẫn chạy, còn cái PopularRepository khi thêm method findOneByCode() vào thì không chạy được. Mong mọi người giải thích cho em với nha, cảm ơn mọi người đã xem qua