@@ -69,11 +69,11 @@ steps:
settings:
port: 22
host:
- from_secret: ssh_host
+ from_secret: ssh_host # 服务器地址
username:
- from_secret: ssh_user
+ from_secret: ssh_user # 用户名
password:
- from_secret: ssh_pwd
+ from_secret: ssh_pwd # 密码
command_timeout: 5m
source:
- target/test.jar
@@ -130,7 +130,7 @@
</compilerArgs>
</configuration>
</plugin>
-
+ <!-- 创建一个不包含依赖的jar包,称为瘦jar,新增依赖需要打开下面maven-dependency-plugin注释 -->
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
@@ -7,6 +7,6 @@ import org.springframework.web.bind.annotation.RestController;
public class HelloController {
@GetMapping("/")
public String hello() {
- return "测试新内容";
+ return "Hello World!";
}