Spring Suit Tools are provided by the official Eclipse-based development tools
1. Download
https://spring.io/tools3/sts/
2, extracting run Sts.exe
3、New->New Starter Project
Modified as follows, if done with a project management background
4. Next select the web
5, the following directory structure
6, a new the Controller
com.jgui.jgadmin.controller
code show as below
package com.jgui.jgadmin.controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @RestController public class HelloController { @RequestMapping("/Hello") public String hello() { return "Hello World"; } }
7, right click on the Controller run Run as SprintBootApp
8、在浏览器打入
http://localhost:8080/Hello,即有如下显示
总体上感觉和IDEA的向导很相近