今天寫junit測試類的時候用@Test標籤提示:test is not an annotation type
原來是文件名也叫Test衝突了,只需改下文件名即可。
WasModel有四個字段,ContentsModel有兩個字段,現在想將wasList轉換成contentsList,只需要利用map方法即可 public static void main(String[] args) {