【內建SpringBoot】
參考我的另一篇文章
【SpringBoot】第一步:在myeclipse中安裝spring-tool-suite的插件
【在myeclipse建立項目 】
-
可以使用右鍵建立項目,也可以使用快捷鍵來進行建立(Ctrl + N)
注:Ctrl + N不止能建立項目
再選擇Spring Starter Project—>Next
- 填寫項目資訊
- 選擇web—> Finish
- 正在加載相關配置 5.SpringbootDemoApplication.java 這是一個啟動類,可以直接通過main方法 進行直接啟動項目。
package com.cn.demo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class SpringbootDemoApplication {
public static void main(String[] args) {
SpringApplication.run(SpringbootDemoApplication.class, args);
}
}