標籤:pen artifact log version odi model uil pack exec
1.建立Maven項目2.pom檔案
1 <?xml version="1.0" encoding="UTF-8"?> 2 <project xmlns="http://maven.apache.org/POM/4.0.0" 3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 4 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 5 <modelVersion>4.0.0</modelVersion> 6 7 <groupId>com.springboot</groupId> 8 <artifactId>springboot</artifactId> 9 <version>1.0-SNAPSHOT</version>10 11 <!-- Spring boot 父引用-->12 <parent>13 <groupId>org.springframework.boot</groupId>14 <artifactId>spring-boot-starter-parent</artifactId>15 <version>1.4.1.RELEASE</version>16 </parent>17 <dependencies>18 <!-- Spring boot 核心web-->19 <dependency>20 <groupId>org.springframework.boot</groupId>21 <artifactId>spring-boot-starter-web</artifactId>22 </dependency>23 <dependency>24 <groupId>org.projectlombok</groupId>25 <artifactId>lombok</artifactId>26 <version>1.16.18</version>27 </dependency>28 <dependency>29 <groupId>com.alibaba</groupId>30 <artifactId>fastjson</artifactId>31 <version>1.2.28</version>32 </dependency>33 <dependency>34 <groupId>org.springframework.boot</groupId>35 <artifactId>spring-boot-starter-logging</artifactId>36 </dependency>37 </dependencies>38 39 <build>40 <plugins>41 <plugin>42 <groupId>org.springframework.boot</groupId>43 <artifactId>spring-boot-maven-plugin</artifactId>44 <executions>45 <execution>46 <goals>47 <goal>repackage</goal>48 </goals>49 </execution>50 </executions>51 <configuration>52 <executable>true</executable>53 </configuration>54 </plugin>55 </plugins>56 </build>57 58 </project>
簡單的springboot應用,日誌,靜態資源配置