BAEL-54445 reorganize docker modules
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package com.baeldung.docker;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
@SpringBootApplication
|
||||
public class MainApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(MainApplication .class, args);
|
||||
}
|
||||
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
package com.baeldung.docker.controllers;
|
||||
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@RestController
|
||||
public class HelloWorldController {
|
||||
@GetMapping("/helloworld")
|
||||
String helloWorld() {
|
||||
return "Hello World!";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user