본문 바로가기
lecture.js/springboot

spring-boot-starter 와 spring-boot-starter-web의 차이

by malda 2019. 6. 19.

spring-boot-starter-web의 상세 dependency

spring-boot 실행하면 바로 꺼지길래 왜그런가 했더니 dependency가 spring-boot-starter였음. spring-boot-web으로 변경해야함.

 

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
<version>2.1.5.RELEASE</version>
<scope>compile</scope>
</dependency>


<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-json</artifactId>
<version>2.1.5.RELEASE</version>
<scope>compile</scope>
</dependency>


<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<version>2.1.5.RELEASE</version>
<scope>compile</scope>
</dependency>


<dependency>
<groupId>org.hibernate.validator</groupId>
<artifactId>hibernate-validator</artifactId>
<version>6.0.16.Final</version>
<scope>compile</scope>
</dependency>


<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>5.1.7.RELEASE</version>
<scope>compile</scope>
</dependency>


<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>5.1.7.RELEASE</version>
<scope>compile</scope>
</dependency>

 

즉, spring-boot-starter를 포함하고 json, tomcat, spring-web, spring-webmvc가 추가되어 있다.

 

 

'lecture.js > springboot' 카테고리의 다른 글

@SpringBootApplication  (0) 2019.06.19
h2 DB설정  (0) 2019.06.19