JSP 页面未在 Spring Boot 应用程序中加载

问题描述 投票:0回答:1

enter image description here当我在 IntelliJ IDEA 中创建 Spring Boot 应用程序时 Jsp 页面未加载

它显示此错误:

# Whitelabel Error Page

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

Sat Jan 06 17:08:01 IST 2024

There was an unexpected error (type=Not Found, status=404).

请提供解决方案

java spring-boot jsp
1个回答
0
投票

无法像使用 Spring Boot 访问 html 页面一样访问 jsp 页面。这是 jsp 集成 与 Spring Boot

的示例
© www.soinside.com 2019 - 2024. All rights reserved.