diff --git a/src/main/java/com/example/springip/controllers/TestController.java b/src/main/java/com/example/springip/lab1/controllers/TestController.java similarity index 95% rename from src/main/java/com/example/springip/controllers/TestController.java rename to src/main/java/com/example/springip/lab1/controllers/TestController.java index 1483007..4f91a88 100644 --- a/src/main/java/com/example/springip/controllers/TestController.java +++ b/src/main/java/com/example/springip/lab1/controllers/TestController.java @@ -1,4 +1,4 @@ -package com.example.springip.controllers; +package com.example.springip.lab1.controllers; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestParam; diff --git a/src/main/java/com/example/springip/controllers/OperationController.java b/src/main/java/com/example/springip/lab2/controllers/OperationController.java similarity index 92% rename from src/main/java/com/example/springip/controllers/OperationController.java rename to src/main/java/com/example/springip/lab2/controllers/OperationController.java index c50419d..1445fcc 100644 --- a/src/main/java/com/example/springip/controllers/OperationController.java +++ b/src/main/java/com/example/springip/lab2/controllers/OperationController.java @@ -1,6 +1,6 @@ -package com.example.springip.controllers; +package com.example.springip.lab2.controllers; -import com.example.springip.service.OperationService; +import com.example.springip.lab2.service.OperationService; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; diff --git a/src/main/java/com/example/springip/domains/OperationInterface.java b/src/main/java/com/example/springip/lab2/domains/OperationInterface.java similarity index 77% rename from src/main/java/com/example/springip/domains/OperationInterface.java rename to src/main/java/com/example/springip/lab2/domains/OperationInterface.java index 18ae55d..15b4486 100644 --- a/src/main/java/com/example/springip/domains/OperationInterface.java +++ b/src/main/java/com/example/springip/lab2/domains/OperationInterface.java @@ -1,4 +1,4 @@ -package com.example.springip.domains; +package com.example.springip.lab2.domains; public interface OperationInterface { T sum(T o,T o2); diff --git a/src/main/java/com/example/springip/domains/OperationNumImpl.java b/src/main/java/com/example/springip/lab2/domains/OperationNumImpl.java similarity index 85% rename from src/main/java/com/example/springip/domains/OperationNumImpl.java rename to src/main/java/com/example/springip/lab2/domains/OperationNumImpl.java index 947498e..5702cc8 100644 --- a/src/main/java/com/example/springip/domains/OperationNumImpl.java +++ b/src/main/java/com/example/springip/lab2/domains/OperationNumImpl.java @@ -1,11 +1,10 @@ -package com.example.springip.domains; +package com.example.springip.lab2.domains; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; +import com.example.springip.lab2.domains.OperationInterface; import org.springframework.stereotype.Component; @Component(value = "num") -public class OperationNumImpl implements OperationInterface{ +public class OperationNumImpl implements OperationInterface { @Override public Integer sum(Integer o, Integer o2) { return o + o2; diff --git a/src/main/java/com/example/springip/domains/OperationStringImpl.java b/src/main/java/com/example/springip/lab2/domains/OperationStringImpl.java similarity index 85% rename from src/main/java/com/example/springip/domains/OperationStringImpl.java rename to src/main/java/com/example/springip/lab2/domains/OperationStringImpl.java index 0716e0a..4070758 100644 --- a/src/main/java/com/example/springip/domains/OperationStringImpl.java +++ b/src/main/java/com/example/springip/lab2/domains/OperationStringImpl.java @@ -1,9 +1,10 @@ -package com.example.springip.domains; +package com.example.springip.lab2.domains; +import com.example.springip.lab2.domains.OperationInterface; import org.springframework.stereotype.Component; @Component(value = "str") -public class OperationStringImpl implements OperationInterface{ +public class OperationStringImpl implements OperationInterface { @Override public String sum(String o, String o2) { return o+o2; diff --git a/src/main/java/com/example/springip/service/OperationService.java b/src/main/java/com/example/springip/lab2/service/OperationService.java similarity index 92% rename from src/main/java/com/example/springip/service/OperationService.java rename to src/main/java/com/example/springip/lab2/service/OperationService.java index 83d1f6f..0abac84 100644 --- a/src/main/java/com/example/springip/service/OperationService.java +++ b/src/main/java/com/example/springip/lab2/service/OperationService.java @@ -1,7 +1,6 @@ -package com.example.springip.service; +package com.example.springip.lab2.service; -import com.example.springip.domains.OperationInterface; -import com.example.springip.domains.OperationNumImpl; +import com.example.springip.lab2.domains.OperationInterface; import org.springframework.context.ApplicationContext; import org.springframework.stereotype.Service;