Spring Initializr use to quickly create applications SpringBoot

Spring Initializr use to quickly create applications SpringBoot

Spring Initializr Spring is the official reference building tools, Idea Ultimate version default on its support
rapid creation of this section, we learn Spring Boot application


Learning Video: http://www.itlaoqi.com/chapter/1683.html

Source Address: QQ group 814,077,650, self-help group sharing download

Old Qi official website: itlaoqi.com (in which more dry)


Operating procedures

  1. Create new project
  2. Left selection Spring Initializr, right and select Default Jdk8 (or more) can be
  3. Custom Group / Artifact / Version, other default can
  4. web-> web increases Spring Boot starter web Starter
    Template-Engines -> select Thymeleaf, template engine
  5. Project successfully created, SPB standard directory structure and configuration files are created by default in the
  6. Create a test Controller
package com.qiyi.myspringboot.controller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class MyController {
    @RequestMapping("/out")
    @ResponseBody
    public String out(){
        return "success";
    }
}
  1. Run XXXApplication, service default port 8080
  2. Browser to access localhost: 8080 / out

Guess you like

Origin www.cnblogs.com/itlaoqi/p/11391699.html