https://java119.tistory.com/45 [MyBatis] resultType에 넣을 수 있는 값 정리 resultType 문법 예시 쿼리 내용... 쿼리 내용... 쿼리 내용... 별칭(alias) 데이터 형태(data type) string String date Date map Map hashmap HashMap list List arraylist ArrayList decimal BigDecimal bigdec.. java119.tistory.com
import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest; import org.springframework.test.context.junit4.SpringRunner; import org.springframework.test.web.servlet.MockMvc; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; imp..
프로젝트의 메인 클래스 스프링 부트의 자동설정, 스프링 Bean 읽기, 생성 모두 자동으로 설정해줌 @SpringBootApplication가 있는 위치부터 설정을 읽어가기 때문에 이 클래스는 항상 프로젝트의 최상단에 위치해야함 * 예시 @SpringBootApplication public class DemoApplication { public static void main(String[] args) { SpringApplication.run(DemoApplication.class, args); //.run이내장 was를 실행 } } spring boot는 내장 was가 있어서 그걸로 실제 서버에서 구동도 할 수 있는듯..?!
TDD != 단위테스트 TDD -> 테스트가 주도하는 개발 TDD를 하기 위해서는 테스트 코드를 먼저 작성 해야한다. 테스트 코드작석을 도와주는 프레임워크 (junit 이 프레임워크였다니? 라이브러리 아닌가? -> https://medium.com/@hongseongho/%ED%94%84%EB%A0%88%EC%9E%84%EC%9B%8C%ED%81%AC%EC%99%80-%EB%9D%BC%EC%9D%B4%EB%B8%8C%EB%9F%AC%EB%A6%AC%EC%9D%98-%EC%B0%A8%EC%9D%B4-2f5bf35140ca) junit - java DBUnit - DB CppUnit - c++ NUnit-.net