feat: 简单测试
This commit is contained in:
15
nl-verify-check-test/src/main/java/org/nl/Application.java
Normal file
15
nl-verify-check-test/src/main/java/org/nl/Application.java
Normal 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);
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
6
pom.xml
6
pom.xml
@@ -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>
|
||||
|
||||
@@ -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!");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user