init
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package com.ab.dronedemo;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
@SpringBootApplication
|
||||
public class DronedemoApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(DronedemoApplication.class, args);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.ab.dronedemo.api;
|
||||
|
||||
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("index")
|
||||
public class DemoApi {
|
||||
|
||||
@GetMapping("demo")
|
||||
public ResponseEntity<java.lang.String> get() {
|
||||
return ResponseEntity.ok("Hello World");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
spring.application.name=dronedemo
|
||||
server.port=7788
|
||||
Reference in New Issue
Block a user