页面跳转404 路由配置

2021年12月17日1 min read
前端

当我们进行页面跳转时出现404未找到时,有可能是我们忘记配置路由了。

/**  
 * 解决发案  
 *  
 * @return  
 */  
@GetMapping("admin/solution/solution")  
public String solution() {  
    // 解决发案  
    List<ContentBanner> indexSolution = contentBannerService.shufflingFigure(ContentTypeEnum.PROGRAMME);  
    request.setAttribute(AttrKeyConst.PROGRAMME_LINK, indexSolution);  
    return "admin/solution/solution";  
}