Spring Boot을 사용하기위해서, Spring과 관련된 모듈이외에
여러가지 유용한 모듈과 같이 상호연동이 가능하기때문에 메이븐기준으로
자주사용되는 모듈들을 정리합니다. 실 프로젝트에서는 필요한것만 사용하여 경량화를 합니다.
pom.xml 에 STS를 통해 자동생성이되나, 모듈의 네임스페이스를 대략 파악합니다.
Spring Boot 주요버젼
<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.5.9.RELEASE</version> <relativePath/> <!-- lookup parent from repository --> </parent>
WEB/REST
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-rest</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency>
JPA
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId> </dependency>
MyBatis
<dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> <version>1.3.1</version> </dependency>
DB Connect
MySQL
<dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <scope>runtime</scope> </dependency>