예제 1-5 build.gradle
apply plugin: 'application'
mainClassName = System.getProperty("mainClass")
repositories {
mavenCentral()
maven {
url "http://repo.spring.io/libs-snapshot"
url "http://repo.spring.io/milestone"
url "http://repo.spring.io/libs-release"
}
}
dependencies {
compile("org.springframework.boot:spring-boot-starter-web:1.1.4.RELEASE")
}
예제 1-5는 스프링 프레임워크 의존성을 추가하는 대신에, 이번에는 이 애플리케이션을 웹 애플리케이션으로 실행할 수 있도록 실제로 모든 것을 준비해주는 spring-boot-starter-web의 사용을 보여준다.