如題跟朋友聊天炫耀有來寫這個主題
爲了那個elastic 聯名款保溫瓶,殊不知他的評論:你不是碼農?怎麽都沒扣?
從開專案開始吧
直接intellij spring boot,然而對這神好用的東西不熟的銅學
任意門幫你們放這了
spring boot30天手把手必收文章
對lambda不熟的銅學,這裏也有邊好文收着
不知道此等神物的銅學也請點 -> 任意門
草率到不行的專案就此完成了呢
反正最後一定動的起來XDD
最後附上 pom.xml檔,專案啓起來應該是要長這樣的留意版本號囉
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.4.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.ithelp.ironman</groupId>
<artifactId>ec-demo</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>ec-demo</name>
<description>connect to elastic by jacky</description>
<packaging>jar</packaging>
<properties>
<java.version>1.8</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>