mirror of
https://github.com/tiennm99/koyeb-example-spring-boot.git
synced 2026-07-27 10:19:59 +00:00
Initial commit
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package com.koyeb.examplespringboot;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@SpringBootApplication
|
||||
@RestController
|
||||
public class ExampleSpringBootApplication {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(ExampleSpringBootApplication.class, args);
|
||||
}
|
||||
|
||||
@GetMapping("/")
|
||||
public String hello() {
|
||||
return String.format("Hello world!");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
server.port=${PORT:8080}
|
||||
@@ -0,0 +1,13 @@
|
||||
package com.koyeb.examplespringboot;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
|
||||
@SpringBootTest
|
||||
class ExampleSpringBootApplicationTests {
|
||||
|
||||
@Test
|
||||
void contextLoads() {
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user