Spring Boot 进行测试提示 TestContextAnnotationUtils 错误
在SpringBoot运行测试的时候提示错误:<pre<codejava.lang.NoClassDefFoundError:org/springframework/test/context/TestContextAnnotationUtils</code</pre!s
在SpringBoot运行测试的时候提示错误:<pre<codejava.lang.NoClassDefFoundError:org/springframework/test/context/TestContextAnnotationUtils</code</pre!s
!(https://imghelloworld.osscnbeijing.aliyuncs.com/imgs/1ac752c45d2ad7ceacca0f17b798a7ff.png)<blockquote作者|张彭善</blockquote从2003年谷歌大数据“
1)无参构造器注册bean实体类<pre<codepublicclassUser{privateStringusername;privateStringpassword;publicUser(){Sys