目录
四、把jar包和Dockerfile文件放到服务器的指定目录
一、新建springboot
写一行代码
@RestController
public class HelloController {
@RequestMapping("/hello")
public String hello(){
return "hello,heihei";
}
}
二、使用maven打包
三、新建一个Dockerfile文件
最好安装docker插件,这样编写dockerfile时会有颜色提示