▲ TimeMapperTest
페이지 정보

본문
package com.pkt.controller;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import com.pkt.mapper.TimeMapper;
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("file:src/main/webapp/WEB-INF/root-context.xml")
public class TimeMapperTest {
@Autowired
private TimeMapper timeMapper;
@Test
public void tetGetTime() {
System.out.println("현재시간:"+timeMapper.getTime());
}
}
- 이전글TimeMapper.xml 24.07.16
- 다음글◆ root-context.xml ( mapper 설정 추가 ) 24.07.16
댓글목록
등록된 댓글이 없습니다.