add get request for hello world
This commit is contained in:
parent
d743a200d1
commit
a0413b2a48
|
@ -2,12 +2,19 @@ package com.mixel.docusphere;
|
|||
|
||||
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 DocuSphereApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(DocuSphereApplication.class, args);
|
||||
}
|
||||
|
||||
@GetMapping("/hello")
|
||||
public String helloWorld() {
|
||||
return "Hello World!";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue