1. @ActiveProfiles("test")html
我理解这个注解的主要用途是区分不一样的环境。通常公司开发一个项目时,会区分测试环境、生产环境等。添加该注解,说明读取的profile是带有test后缀的,好比这种:app
application-test.properties测试
参考文章: http://www.leftso.com/blog/111.html htm
2.@RunWith(SpringRunner.class)blog