basic-spring to master #5

Merged
hirst merged 9 commits from basic-spring into master 2024-05-27 17:32:47 +02:00
2 changed files with 19 additions and 0 deletions
Showing only changes of commit a36c9d778b - Show all commits

View file

@ -2,8 +2,11 @@ package com.learningpulse.dummy;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
@SpringBootApplication @SpringBootApplication
@EnableDiscoveryClient
public class DummyApplication { public class DummyApplication {
public static void main(String[] args) { public static void main(String[] args) {

View file

@ -0,0 +1,16 @@
package com.learningpulse.dummy;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/api/v1/dummy")
public class Test {
@GetMapping("/test")
public ResponseEntity<String> test() {
return ResponseEntity.ok("Hello, World!");
}
}