选择对应的模块
注:这里左侧的模块比较多,玩家可以根据自己的实际需要自由选择,此处暂时选择web
注:项目类型为maven的话,需要配置阿里云仓库才不会特别慢
setting.xml
<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 "你好,樊瑞"; } }