1.创建一个新Module
选择file->new->module
2.选择spring Initializr
->next
3.框内名字自己改
->next
4.选中web->spring web
->next->finish
5.添加主函数,
主函数添加要与Application启动类同级
package com.example.hello;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class Hello {
@GetMapping(