feat: 简单测试

This commit is contained in:
2025-08-26 20:07:54 +08:00
parent 4350a3894d
commit 9992a04754
4 changed files with 39 additions and 11 deletions

View File

@@ -0,0 +1,15 @@
package org.nl;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* @Author: lyd
* @Date: 2025/8/26
*/
@SpringBootApplication
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}

View File

@@ -0,0 +1,18 @@
package org.nl;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* @Author: lyd
* @Date: 2025/8/26
*/
@RestController
public class TestController {
@GetMapping("/")
public ResponseEntity<Object> test1() {
return new ResponseEntity<>("测试", HttpStatus.OK);
}
}

View File

@@ -4,6 +4,12 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.6.4</version>
</parent>
<groupId>org.nl</groupId>
<artifactId>nl-verify-check</artifactId>
<version>1.0-SNAPSHOT</version>

View File

@@ -1,11 +0,0 @@
package org.nl;
/**
* @Author: lyd
* @Date: ${DATE}
*/
public class Main {
public static void main(String[] args) {
System.out.println("Hello world!");
}
}