Browse Source

auto

main
educoder 2 years ago
commit
45fba92538
15 changed files with 100 additions and 0 deletions
  1. BIN
      .DS_Store
  2. +3
    -0
      README.md
  3. +50
    -0
      pom.xml
  4. BIN
      src/.DS_Store
  5. BIN
      src/main/.DS_Store
  6. BIN
      src/main/java/.DS_Store
  7. BIN
      src/main/java/com/.DS_Store
  8. +19
    -0
      src/main/java/com/example/springboothelloworld/HelloController.java
  9. +13
    -0
      src/main/java/com/example/springboothelloworld/SpringbootHelloworldApplication.java
  10. +1
    -0
      src/main/resources/application.properties
  11. +13
    -0
      src/test/java/com/example/springboothelloworld/SpringbootHelloworldApplicationTests.java
  12. +1
    -0
      target/classes/application.properties
  13. BIN
      target/classes/com/example/springboothelloworld/HelloController.class
  14. BIN
      target/classes/com/example/springboothelloworld/SpringbootHelloworldApplication.class
  15. BIN
      target/test-classes/com/example/springboothelloworld/SpringbootHelloworldApplicationTests.class

BIN
.DS_Store View File


+ 3
- 0
README.md View File

@@ -0,0 +1,3 @@
# springboot_demo

springboot_demo

+ 50
- 0
pom.xml View File

@@ -0,0 +1,50 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://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.0.3.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.example</groupId>
<artifactId>springboot-helloworld</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>springboot-helloworld</name>
<description>springboot-helloworld</description>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>

<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<excludes>
<exclude>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
</project>

BIN
src/.DS_Store View File


BIN
src/main/.DS_Store View File


BIN
src/main/java/.DS_Store View File


BIN
src/main/java/com/.DS_Store View File


+ 19
- 0
src/main/java/com/example/springboothelloworld/HelloController.java View File

@@ -0,0 +1,19 @@
package com.example.springboothelloworld;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

@GetMapping("/")
public String index() {
return "Greetings from Spring Boot!";
}
@GetMapping("/healthcheck")
public String healthcheck() {
return "Greetings from Spring Boot!";
}

}


+ 13
- 0
src/main/java/com/example/springboothelloworld/SpringbootHelloworldApplication.java View File

@@ -0,0 +1,13 @@
package com.example.springboothelloworld;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class SpringbootHelloworldApplication {

public static void main(String[] args) {
SpringApplication.run(SpringbootHelloworldApplication.class, args);
}

}

+ 1
- 0
src/main/resources/application.properties View File

@@ -0,0 +1 @@


+ 13
- 0
src/test/java/com/example/springboothelloworld/SpringbootHelloworldApplicationTests.java View File

@@ -0,0 +1,13 @@
package com.example.springboothelloworld;

import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
class SpringbootHelloworldApplicationTests {

@Test
void contextLoads() {
}

}

+ 1
- 0
target/classes/application.properties View File

@@ -0,0 +1 @@


BIN
target/classes/com/example/springboothelloworld/HelloController.class View File


BIN
target/classes/com/example/springboothelloworld/SpringbootHelloworldApplication.class View File


BIN
target/test-classes/com/example/springboothelloworld/SpringbootHelloworldApplicationTests.class View File


Loading…
Cancel
Save