JAVA-IntelliJ IDEA(旗舰版)-搭建Spring-boot(无配置,无需集成Spring、无需集成SpringMVC,但是具有相关功能,无需要依赖Servlet容器,快速构建项目)

一、创建Spring-boot

这里写图片描述

这里写图片描述

这里写图片描述

这里写图片描述

这里写图片描述

Democontroller

package com.example.demo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Democontroller {

    @RequestMapping(value = "hi")

    public String sayHi()
    {
        return "hello Spring boot";
    }

}

这里写图片描述

这里写图片描述

猜你喜欢

转载自blog.csdn.net/weixin_36792339/article/details/80926834