方法一
安装STS插件
javaspring框架?
安装插件导向窗口完成后,在eclipse右下角将会出现安装插件的进度,等插件安装完成后重启eclipse生效
新建spring boot项目
eclipse框架。
项目启动
eclipse环境,方法二
eclipse里没有svn。<!-- spring boot基本环境 -->
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.2.RELEASE</version>
eclipse新建项目?</parent>
<!--web应用基本环境配置 -->
<dependency>
<groupId>org.springframework.boot</groupId>
springboot版本, <artifactId>spring-boot-starter-web</artifactId>
</dependency>
<build>
<plugins>
eclipse配置maven? <!-- spring-boot-maven-plugin插件就是打包spring boot应用的 -->
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
springboot2, </plugins
</build>
springboot中文手册,
package com.springboot.springbootDemo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
springboot原理。public class App
{
public static void main( String[] args )
{
SpringApplication.run(App.class, args);
eclipse怎样新建java项目。 }
}
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/
点击Generate Project下载项目压缩包
解压后,使用eclipse,Import -> Existing Maven Projects -> Next ->选择解压后的文件夹-> Finsh,OK done!
版权声明:本站所有资料均为网友推荐收集整理而来,仅供学习和研究交流使用。
工作时间:8:00-18:00
客服电话
电子邮件
admin@qq.com
扫码二维码
获取最新动态