這篇文章主要介紹了eclipse創(chuàng)建springboot項(xiàng)目的方式有哪些的相關(guān)知識,內(nèi)容詳細(xì)易懂,操作簡單快捷,具有一定借鑒價值,相信大家閱讀完這篇eclipse創(chuàng)建springboot項(xiàng)目的方式有哪些文章都會有所收獲,下面我們一起來看看吧。
創(chuàng)新互聯(lián)專注于山陽網(wǎng)站建設(shè)服務(wù)及定制,我們擁有豐富的企業(yè)做網(wǎng)站經(jīng)驗(yàn)。 熱誠為您提供山陽營銷型網(wǎng)站建設(shè),山陽網(wǎng)站制作、山陽網(wǎng)頁設(shè)計、山陽網(wǎng)站官網(wǎng)定制、微信小程序開發(fā)服務(wù),打造山陽網(wǎng)絡(luò)公司原創(chuàng)品牌,更為您提供山陽網(wǎng)站排名全網(wǎng)營銷落地服務(wù)。
安裝插件導(dǎo)向窗口完成后,在eclipse右下角將會出現(xiàn)安裝插件的進(jìn)度,等插件安裝完成后重啟eclipse生效
<!-- spring boot基本環(huán)境 --> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.0.2.RELEASE</version> </parent>
<!--web應(yīng)用基本環(huán)境配置 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency>
<build> <plugins> <!-- spring-boot-maven-plugin插件就是打包spring boot應(yīng)用的 --> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> </plugins </build>
package com.springboot.springbootDemo; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class App { public static void main( String[] args ) { SpringApplication.run(App.class, args); } }
package com.springboot.springbootDemo.controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @RestController @RequestMapping("hello2") public class HelloController { @RequestMapping("") public String hello() { return "helloworld2"; } }
http://localhost:8012/hello2
訪問http://start.spring.io/
解壓后,使用eclipse,Import -> Existing Maven Projects -> Next ->選擇解壓后的文件夾-> Finsh,OK done!
關(guān)于“eclipse創(chuàng)建springboot項(xiàng)目的方式有哪些”這篇文章的內(nèi)容就介紹到這里,感謝各位的閱讀!相信大家對“eclipse創(chuàng)建springboot項(xiàng)目的方式有哪些”知識都有一定的了解,大家如果還想學(xué)習(xí)更多知識,歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道。
本文標(biāo)題:eclipse創(chuàng)建springboot項(xiàng)目的方式有哪些
網(wǎng)頁網(wǎng)址:http://www.muchs.cn/article24/jiopje.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供電子商務(wù)、網(wǎng)站制作、響應(yīng)式網(wǎng)站、商城網(wǎng)站、靜態(tài)網(wǎng)站、App設(shè)計
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)