packagecommon.repository;importcommon.model.Menu;importcommon.model.User;importorg.springframework.data.jpa.repository.JpaRepository;importorg.springframework.data.jpa.repository.Query;importorg.springframework.transaction.annotation.Transactional;importjava.util.List;@TransactionalpublicinterfaceUserRepositoryextendsJpaRepository<User,Long>{@Query(value="select * from User where email = ?1 and password = ?2",nativeQuery=true)Userlogin(Stringemail,Stringpwd);@Query(value="select * from User where id = ?1",nativeQuery=true)UserfindOne(Longid);}