标签:测试 work mapping bin pac public code create web
选择Spring Initializr
填写组织和模块名
选择对应的模块
注:这里左侧的模块比较多,玩家可以根据自己的实际需要自由选择,此处暂时选择web
完成
<mirrors>
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
package com.wujianqinjian.Controller;
import org.springframework.web.bind.annotation.Mapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* Created by JianH on 2019/11/15.
*/
@RestController
public class HelloController
{
@RequestMapping("/hello")
public String hellofanrui(){
return "你好,樊瑞";
}
}
Spring-boot(一)通过向导快速创建Spring-boot项目
标签:测试 work mapping bin pac public code create web
原文地址:https://www.cnblogs.com/wujianqinjian/p/11969584.html