Sample module imported
This commit is contained in:
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>";
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user