init
This commit is contained in:
commit
29dce6ed0f
8 files changed
+682
No files matched your search
@@ -0,0 +1,13 @@
|
||||
package de.exodus_hn.excalibur_tour;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
@SpringBootApplication
|
||||
public class ExcaliburTourApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(ExcaliburTourApplication.class, args);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package de.exodus_hn.excalibur_tour.controller;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
@CrossOrigin
|
||||
@RestController
|
||||
@RequestMapping("/codes")
|
||||
@RequiredArgsConstructor
|
||||
public class CodeController {
|
||||
|
||||
@GetMapping
|
||||
public String greeting(@RequestParam(defaultValue = "World") String name) {
|
||||
return "Hello " + name;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
spring.application.name=excalibur-tour
|
||||
springdoc.api-docs.enabled=true
|
||||
springdoc.swagger-ui.enabled=true
|
||||
@@ -0,0 +1,13 @@
|
||||
package de.exodus_hn.excalibur_tour;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
|
||||
@SpringBootTest
|
||||
class ExcaliburTourApplicationTests {
|
||||
|
||||
@Test
|
||||
void contextLoads() {
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user