十年网站开发经验 + 多家企业客户 + 靠谱的建站团队
量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决
这篇文章主要介绍了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项目的方式有哪些”知识都有一定的了解,大家如果还想学习更多知识,欢迎关注创新互联行业资讯频道。