UserRepository.java
302 Bytes
package com.xkl.repository;
import com.xkl.domain.User;
import org.springframework.data.repository.CrudRepository;
/**
* User类的CRUD操作
* @see com.xkl.domain.User
*/
public interface UserRepository extends CrudRepository<User, Long> {
public User findByLoginAccount(String username);
}