Sample module imported
This commit is contained in:
parent
8c7d727e98
commit
386138ea62
18
buisnesslogic/src/main/java/com/plannaplan/SampleClass.java
Normal file
18
buisnesslogic/src/main/java/com/plannaplan/SampleClass.java
Normal 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;
|
||||
}
|
||||
|
||||
}
|
@ -45,6 +45,12 @@
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<artifactId>buisnesslogic</artifactId>
|
||||
<groupId>com.plannaplan</groupId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
15
restservice/src/main/java/com/plannaplan/TestController.java
Normal file
15
restservice/src/main/java/com/plannaplan/TestController.java
Normal 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>";
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user