1. 程式人生 > >My First Spring-Boot Project(1)

My First Spring-Boot Project(1)

gem end asp see f429 str show ttl one

First of all, open the IDE -----> IDEA

click File ->New Project

技術分享圖片

Choose the basic spring-boot version. now I choose 2.1.0 M2, although i don‘t known the differences between them.

Dependencies : choose what you need ,or you can choose little but add later.

技術分享圖片

技術分享圖片

Aspect use for showing the processing message while a request is dealing. very useful for debugging.

技術分享圖片

Alright, it‘s already provided here.

技術分享圖片

技術分享圖片

now set the Gradle Environment.

技術分享圖片

there is a POINT :

技術分享圖片

what‘s the difference?

SpringBoot v2.1.0.M2 needs Gradle 4.0 above.

so choose

技術分享圖片

Download too much...

技術分享圖片

before:

技術分享圖片

after: still have no folder for src and webapp

技術分享圖片

Well create Folders and files , but you must obey these rules:

技術分享圖片

rebuild:

技術分享圖片

OK, finally something came out. promotion!

技術分享圖片

Which one needs to put in ?

These two:

技術分享圖片

Can We Run Now?

try:

技術分享圖片

技術分享圖片

Nothing we can see. But its too late , see you tomorrow! Have a nice day.

技術分享圖片

My First Spring-Boot Project(1)