博客:
https://blog.csdn.net/xiao_xuwen/article/details/52890730
http://ypk1226.com/2018/11/17/spring-boot/spring-boot-test-1/
http://ypk1226.com/2018/11/20/spring-boot/spring-boot-test-2/
https://www.cnblogs.com/pluto4596/p/11703382.html
创建单元测试的方法:
1.在src下创建目录test
2.右击 选择Mark Directory as -> Test Resource Root
3.打开需要测试的类 ctrl+shift+t 创建单元测试