diff --git a/SysUserRepository.java b/SysUserRepository.java new file mode 100644 index 0000000..53484bd --- /dev/null +++ b/SysUserRepository.java @@ -0,0 +1,12 @@ +//SysUser.java的接口 +package com.power.travel.repository; + +import com.power.travel.model.SysUser; +import org.springframework.data.jpa.repository.JpaRepository; +import org.springframework.data.jpa.repository.JpaSpecificationExecutor; +import org.springframework.stereotype.Repository; + +@Repository +public interface SysUserRepository extends JpaRepository, JpaSpecificationExecutor { + SysUser findSysUserByUsername(String username); +} \ No newline at end of file