Initial commit

This commit is contained in:
Andrei Ciortea
2021-10-04 09:13:00 +02:00
commit 5b835bc6bc
36 changed files with 1662 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
package com.dockerforjavadevelopers.hello;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
@Configuration
@EnableAutoConfiguration
@ComponentScan
public class Application {
public static void main(String[] args) {
ApplicationContext ctx = SpringApplication.run(Application.class, args);
}
}

View File

@@ -0,0 +1,14 @@
package com.dockerforjavadevelopers.hello;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.RequestMapping;
@RestController
public class HelloController {
@RequestMapping("/")
public String index() {
return "Hello World! Nice to see you :-)\n";
}
}

View File

@@ -0,0 +1,13 @@
package com.dockerforjavadevelopers.hello;
import static org.junit.Assert.*;
import org.junit.Test;
public class DummyTest {
@Test
public void aTest() {
assertEquals(true, true);
}
}