java-tutorials/server-modules/wildfly/src/main/java/hello/HelloController.java

15 lines
307 B
Java

package hello;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.RequestMapping;
@RestController
public class HelloController {
@RequestMapping("/")
public String index() {
return "Greetings from Spring Boot!";
}
}