1. @ActiveProfiles("test")html
我理解這個註解的主要用途是區分不一樣的環境。通常公司開發一個項目時,會區分測試環境、生產環境等。添加該註解,說明讀取的profile是帶有test後綴的,好比這種:app
application-test.properties測試
參考文章: http://www.leftso.com/blog/111.html htm
2.@RunWith(SpringRunner.class)blog