用/hello/say时无法访问

来源:5-1 Controller:从红包程序的入口开始

qq_Stardrift_0

2019-08-28

异常:This application has no explicit mapping for /error, so you are seeing this as a fallback.

写回答

1回答

Myshop

2019-09-02

/**
 * Created By poplar on 2019/9/2
 */
@RestController
public class HelloController {

    @Autowired
    private LimitConfig limitConfig;

    @RequestMapping("/hello/say")
    private Object hello() {

        return limitConfig.getDescription();
    }
}

试试看看

0
0

2小时快速上手Spring Boot

一切为了效率!两个小时学习SpringBoot,为你省时省力Get干货

11582 学习 · 249 问题

查看课程