first commit

This commit is contained in:
2022-11-07 23:17:42 +08:00
commit 3fdff26d0f
9 changed files with 480 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
package com.itdachang.devops;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class JavaDevopsDemoApplication {
public static void main(String[] args) {
SpringApplication.run(JavaDevopsDemoApplication.class, args);
}
}

View File

@@ -0,0 +1,17 @@
package com.itdachang.devops.controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class HelloController {
@GetMapping("/hello")
public String hello(){
return "Hello Java DevOps!!! 66666";
}
}

View File

@@ -0,0 +1,4 @@
#优雅停机。
server.shutdown=graceful

View File

@@ -0,0 +1,13 @@
package com.itdachang.devops;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class JavaDevopsDemoApplicationTests {
@Test
void contextLoads() {
}
}