天天看點

【項目搭建】myeclipse : 第二步:建立SpringBoot項目

【內建SpringBoot】

參考我的另一篇文章

【SpringBoot】第一步:在myeclipse中安裝spring-tool-suite的插件

【在myeclipse建立項目 】

  1. 可以使用右鍵建立項目,也可以使用快捷鍵來進行建立(Ctrl + N)

    注:Ctrl + N不止能建立項目

    再選擇Spring Starter Project—>Next

    【項目搭建】myeclipse : 第二步:建立SpringBoot項目
  2. 填寫項目資訊
    【項目搭建】myeclipse : 第二步:建立SpringBoot項目
  3. 選擇web—> Finish
    【項目搭建】myeclipse : 第二步:建立SpringBoot項目
  4. 正在加載相關配置
    【項目搭建】myeclipse : 第二步:建立SpringBoot項目
    5.SpringbootDemoApplication.java 這是一個啟動類,可以直接通過main方法 進行直接啟動項目。
    【項目搭建】myeclipse : 第二步:建立SpringBoot項目
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);
	}

}
           

繼續閱讀