20 lines
479 B
Java
20 lines
479 B
Java
package com.wuyiqi.netstateproc.service;
|
|
|
|
import com.wuyiqi.netstateproc.model.eneity.User;
|
|
import com.wuyiqi.netstateproc.respository.UserRepo;
|
|
import lombok.AllArgsConstructor;
|
|
import org.springframework.data.domain.Example;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
@Service
|
|
@AllArgsConstructor
|
|
public class UserService {
|
|
|
|
private final UserRepo userRepo;
|
|
|
|
public User findByUsername(String username) {
|
|
return userRepo.findByUsername(username);
|
|
}
|
|
|
|
}
|