diff --git a/src/main/java/com/example/demo/DemoApplication.java b/src/main/java/com/example/demo/DemoApplication.java index 9451398..3225831 100644 --- a/src/main/java/com/example/demo/DemoApplication.java +++ b/src/main/java/com/example/demo/DemoApplication.java @@ -12,35 +12,4 @@ public class DemoApplication { public static void main(String[] args) { SpringApplication.run(DemoApplication.class, args); } - @GetMapping("/hello") - public String hello(@RequestParam(value = "name", defaultValue = "World") String name) { - return String.format("Hello %s!", name); - } - - @GetMapping("/sum") - public String Sum(@RequestParam(defaultValue = "0") double first, - @RequestParam(defaultValue = "0") double second) { - return Double.toString(first + second); - } - - @GetMapping("/minus") - public String Ras(@RequestParam(defaultValue = "0") double first, - @RequestParam(defaultValue = "0") double second) { - return Double.toString(first - second); - } - - @GetMapping("/multi") - public String Pros(@RequestParam(defaultValue = "1") double first, - @RequestParam(defaultValue = "1") double second) { - return Double.toString(first * second); - } - - @GetMapping("/div") - public String Del(@RequestParam(defaultValue = "1") double first, - @RequestParam(defaultValue = "1") double second) { - if (second == 0) { - return null; - } - return Double.toString(first / second); - } } diff --git a/src/main/java/method/service/MethodService.java b/src/main/java/method/service/MethodService.java index cca6567..10faf7d 100644 --- a/src/main/java/method/service/MethodService.java +++ b/src/main/java/method/service/MethodService.java @@ -1,7 +1,7 @@ package method.service; -import ip.labwork.method.domain.IMethod; -import ip.labwork.method.domain.MethodString; +import method.domain.IMethod; +import method.domain.MethodString; import org.springframework.context.ApplicationContext; import org.springframework.stereotype.Service;