▲ TimeMapperTest > SPRING1

본문 바로가기

사이트 내 전체검색

뒤로가기 SPRING1

▲ TimeMapperTest

페이지 정보

작성자 관리자 작성일 24-07-16 15:03 조회 526 댓글 0

본문

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;


import lombok.extern.log4j.Log4j;


@RunWith(SpringJUnit4ClassRunner.class)

@ContextConfiguration("file:src/main/webapp/WEB-INF/root-context.xml")

@Log4j 

public class TimeMapperTest {


@Autowired

private TimeMapper timeMapper;


@Test

public void tetGetTime() {

System.out.println("현재시간:"+timeMapper.getTime());

log.info("현재시간:"+timeMapper.getTime()); 

}

}

댓글목록 0

등록된 댓글이 없습니다.


Copyright © dancePKT. All rights reserved.
PC 버전으로 보기