撸了今年阿里、头条和美团的面试,我有一个重要发现.......>>>
本文永久更新地址:
https://my.oschina.net/bysu/blog/3092670
推荐一款免费的自购省钱,分享赚钱的平台——赚赚熊,感兴趣的,特别是家里有婆娘专职带娃的,请看文末。
1.在pom.xml文件中,加入下面的内容:
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.7.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
2.创建一个SampleController类,如下:
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
@EnableAutoConfiguration
public class SampleController {
@RequestMapping("/")
@ResponseBody
String home(){
return "hello,world!";
}
public static void main(String[] args){
SpringApplication.run(SampleController.class,args);
}
}
3.运行SampleController,在浏览器地址栏输入:http://localhost:8080
----------------------下方为免费的广告---------------------
1.识别下图中的二维码,跳到步骤2的界面;
2.填入手机,获取验证码,填入验证码注册,界面跳转至步骤3:
3.点开右上角的“...”,界面跳转至步骤4:
4.选择在系统浏览器打开后,界面跳转至步骤5:
5.根据你手机的系统,选择下载的版本。
6.安装成功后,登录app,选择授权淘宝。授权后,在淘宝购买东西大多数都有返利,后续还会支持京东,唯品会...各大平台。
赚赚熊有问题可以咨询