From 386138ea6258c33d43e3b2c9e56d640f42305ff8 Mon Sep 17 00:00:00 2001 From: Filip Izydorczyk Date: Tue, 9 Jun 2020 18:36:35 +0200 Subject: [PATCH] Sample module imported --- .../main/java/com/plannaplan/SampleClass.java | 18 ++++++++++++++++++ restservice/pom.xml | 6 ++++++ .../java/com/plannaplan/TestController.java | 15 +++++++++++++++ 3 files changed, 39 insertions(+) create mode 100644 buisnesslogic/src/main/java/com/plannaplan/SampleClass.java create mode 100644 restservice/src/main/java/com/plannaplan/TestController.java diff --git a/buisnesslogic/src/main/java/com/plannaplan/SampleClass.java b/buisnesslogic/src/main/java/com/plannaplan/SampleClass.java new file mode 100644 index 0000000..3bfb020 --- /dev/null +++ b/buisnesslogic/src/main/java/com/plannaplan/SampleClass.java @@ -0,0 +1,18 @@ +package com.plannaplan; + +public class SampleClass { + private String xd; + + public SampleClass(String xd) { + this.setXd(xd); + } + + public String getXd() { + return xd; + } + + public void setXd(String xd) { + this.xd = xd; + } + +} \ No newline at end of file diff --git a/restservice/pom.xml b/restservice/pom.xml index 45c5909..bff372f 100644 --- a/restservice/pom.xml +++ b/restservice/pom.xml @@ -45,6 +45,12 @@ + + + buisnesslogic + com.plannaplan + 1.0-SNAPSHOT + diff --git a/restservice/src/main/java/com/plannaplan/TestController.java b/restservice/src/main/java/com/plannaplan/TestController.java new file mode 100644 index 0000000..d45e0a4 --- /dev/null +++ b/restservice/src/main/java/com/plannaplan/TestController.java @@ -0,0 +1,15 @@ +package com.plannaplan; + +import org.springframework.web.bind.annotation.CrossOrigin; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RestController; + +@RestController +@CrossOrigin +public class TestController { + @GetMapping("/") + public String xd() { + SampleClass xd = new SampleClass("hedhadhsbajkd"); + return "

" + xd.getXd() + "

"; + } +} \ No newline at end of file