basic-spring to master #5
|
@ -2,8 +2,11 @@ package com.learningpulse.dummy;
|
|||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
||||
|
||||
|
||||
@SpringBootApplication
|
||||
@EnableDiscoveryClient
|
||||
public class DummyApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
|
16
dummy/src/main/java/com/learningpulse/dummy/Test.java
Normal file
16
dummy/src/main/java/com/learningpulse/dummy/Test.java
Normal 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!");
|
||||
}
|
||||
}
|
Reference in a new issue