这篇文章主要介绍了eclipse创建springboot项目的方式有哪些的相关知识,内容详细易懂,操作简单快捷,具有一定借鉴价值,相信大家阅读完这篇eclipse创建springboot项目的方式有哪些文章都会有所收获,下面我们一起来看看吧。
创新互联专注于山阳网站建设服务及定制,我们拥有丰富的企业做网站经验。 热诚为您提供山阳营销型网站建设,山阳网站制作、山阳网页设计、山阳网站官网定制、微信小程序开发服务,打造山阳网络公司原创品牌,更为您提供山阳网站排名全网营销落地服务。


安装插件导向窗口完成后,在eclipse右下角将会出现安装插件的进度,等插件安装完成后重启eclipse生效







org.springframework.boot spring-boot-starter-parent 2.0.2.RELEASE

org.springframework.boot spring-boot-starter-web

org.springframework.boot spring-boot-maven-plugin



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!
关于“eclipse创建springboot项目的方式有哪些”这篇文章的内容就介绍到这里,感谢各位的阅读!相信大家对“eclipse创建springboot项目的方式有哪些”知识都有一定的了解,大家如果还想学习更多知识,欢迎关注创新互联行业资讯频道。