警告: Runner org.junit.internal.runners.ErrorReportingRunner (used on class com.boy.community.CommunityApplicationTests) does not support filtering and will therefore be run completely.
错误:

错误原因分析:@Test有两个包,一个是org.junit.jupiter.api.Test,另一个是org.junit.Test,而测试需要的Junit是org.junit.Test
解决方法:import org.junit.jupiter.api.Test换成import org.junit.Test;
热爱可抵岁月漫长!

浙公网安备 33010602011771号