1、建立專案
New->Spring Starter Project
2、新增支援
增加對mybatis plus的支援,修改pom.xml,增加如下內容:
<dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus</artifactId> <version>2.0.7</version> </dependency> <dependency> <groupId>org.apache.velocity</groupId> <artifactId>velocity</artifactId> <version>1.7</version> </dependency>
增加對thymeleaf的支援,修改pom.xml,增加如下內容:
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependency>
增加對apache commons包的支援,修改pom.xml,增加如下內容:
<dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-lang3</artifactId> <version>3.4</version> </dependency>
增加對Devtools的支援,右鍵專案-》Spring Tools--》Add Boot Devtools