3、SpringBoot-单元测试

发布时间:2018-06-07 作者:大扑棱蛾子 阅读次数:
版权声明:未经允许不得转载至微信公众号,转载至个人博客请注明出处。 阅读原文

3.1 业务类

1
2
3
4
5
6
7
8
9
10
11
12
13
14
public interface UserService {

void login(String username, String password);
}

@Service
public class UserServiceImpl implements UserService {

private static Logger logger = LoggerFactory.getLogger(UserServiceImpl.class);
@Override
public void login(String username, String password) {
logger.info("用户登录成功");
}
}
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×