16 lines
398 B
Java
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";
|
|
}
|
|
}
|