spring boot no tests found with test runner 'JUnit5'

做单元测试的时候,报spring boot no tests found with test runner 'JUnit5'。

解决:

 

将junit5改为junit4就可以顺利测试。

 

posted @ 2020-12-02 17:58  jiduoduo  阅读(1399)  评论(0编辑  收藏  举报