簡單的springboot應用,日誌,靜態資源配置

來源:互聯網
上載者:User

標籤: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應用,日誌,靜態資源配置

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.