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가 있어서 그걸로 실제 서버에서 구동도 할 수 있는듯..?!