Sample module imported

This commit is contained in:
Filip Izydorczyk 2020-06-09 18:36:35 +02:00
parent 8c7d727e98
commit 386138ea62
3 changed files with 39 additions and 0 deletions

View File

@ -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;
}
}

View File

@ -45,6 +45,12 @@
</exclusion> </exclusion>
</exclusions> </exclusions>
</dependency> </dependency>
<dependency>
<artifactId>buisnesslogic</artifactId>
<groupId>com.plannaplan</groupId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies> </dependencies>
<build> <build>

View File

@ -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 "<h1>" + xd.getXd() + "</h1>";
}
}