idea創(chuàng)建springboot項(xiàng)目和springcloud項(xiàng)目的詳細(xì)教程
一:創(chuàng)建springboot項(xiàng)目
1.選擇File ?> New ?> Project ?>Spring Initialer ?> 點(diǎn)擊Next
2.填寫(xiě)項(xiàng)目相關(guān)的信息,?>點(diǎn)擊next
3.選擇web ?> web,?>點(diǎn)擊next
4.填寫(xiě)項(xiàng)目名和項(xiàng)目位置,?>點(diǎn)擊finish
5.會(huì)自動(dòng)生成一個(gè)Application類,加上一個(gè)@RestController注解就可以寫(xiě)方法了
6.啟動(dòng)Application類中的main()方法,瀏覽器輸入localhost:8080/hi即可看到訪問(wèn)結(jié)果
7.可以在application.properties中修改端口號(hào)
二:創(chuàng)建springcloud微服務(wù)項(xiàng)目
1.創(chuàng)建主工程,選擇maven,直接-->next
2.填寫(xiě)項(xiàng)目相關(guān)的信息,-->next
3.填寫(xiě)項(xiàng)目名和項(xiàng)目位置-->finish
4.創(chuàng)建子項(xiàng)目:在項(xiàng)目上:右鍵-->new-->module-->Spring Initializr-->next
5.填寫(xiě)項(xiàng)目相關(guān)信息-->next
6.選擇Cloud Discovery-->Eureka Server-->next
7.填寫(xiě)項(xiàng)目名和項(xiàng)目位置等-->finish
8.idea會(huì)自動(dòng)生成Application類,用相同的方法可以創(chuàng)建多個(gè)子項(xiàng)目
到此這篇關(guān)于idea創(chuàng)建springboot項(xiàng)目和springcloud項(xiàng)目方法的文章就介紹到這了,更多相關(guān)idea創(chuàng)建springboot項(xiàng)目和springcloud項(xiàng)目?jī)?nèi)容請(qǐng)搜索好吧啦網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持好吧啦網(wǎng)!
相關(guān)文章:
1. 教你JS更簡(jiǎn)單的獲取表單中數(shù)據(jù)(formdata)2. 每日六道java新手入門(mén)面試題,通往自由的道路第二天3. python b站視頻下載的五種版本4. 測(cè)試模式 - XSL教程 - 55. python迭代器自定義類的具體方法6. 讓chatgpt將html中的圖片轉(zhuǎn)為base64方法示例7. 手把手教你用python發(fā)送短消息(基于阿里云平臺(tái))8. python如何寫(xiě)個(gè)俄羅斯方塊9. Python結(jié)合百度語(yǔ)音識(shí)別實(shí)現(xiàn)實(shí)時(shí)翻譯軟件的實(shí)現(xiàn)10. 《CSS3實(shí)戰(zhàn)》筆記--漸變?cè)O(shè)計(jì)(一)
