spring boot无法访问webapp下的页面

如题项目结构如下:

spring boot无法访问webapp下的页面

本地 启动只能访问接口,不能访问网页。控制层都是@RestController,生产能访问。

解决办法:

spring boot无法访问webapp下的页面

 成功

spring boot无法访问webapp下的页面