2020-10-03 11:35:16 +03:30

16 lines
398 B
Java

package com.baeldung.demo.controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping(value = "/")
public class Controller {
@GetMapping
public String getRequest(){
return "Baeldung DispatcherServlet";
}
}