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

2020/12/14 14:16

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

@Controller
@SpringBootApplication
@RequestMapping("/webapp")
public class WebappApplication {

@RequestMapping("/")
String index() {
}

@Controller会把返回信息当作url处理。

@RestController把信息直接作为content返回。

0
0 收藏

0 评论
0 收藏
0