//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); }