SpringBoot new automatically generated configuration [2]

Proceed as follows

 

 

 

 

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class MyController {

    @RequestMapping("output")
    @ResponseBody
    public String out(){
        return "Hello Springboot";
    }
}

 

Published 92 original articles · Likes5 · Visitors 10,000+

Guess you like

Origin blog.csdn.net/xfb1989/article/details/104015267