Springframework + JUnit 設定

Case #1 使用 xml configuration

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(“file:WebContent/WEB-INF/applicationContext.xml”)
public class TestMyDAO {

}

Case#2 java based configuration

 

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...