springboot的页面,jsp不解析<%@怎么办

walkuere 2018-10-25 05:56:44
用的spring boot suite
把以前springmvc可以的jsp页面复制过来,那些代码直接被当成文字显示在页面上

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>



网络上搜了一下是web.xml里的servlet-pattern
但是我的springbootsuite根本就没有web.xml,不知道怎么办呀
...全文
488 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
walkuere 2018-11-09
  • 打赏
  • 举报
回复
1 相关依赖是什么意思? 2 htm可以跳转,还可以带参数,jsp似乎也可以,不带标签的jsp页面?不清楚 3 不太明白,是dependency吗,有很多很多
引用 3 楼 getdate 的回复:
首先你的项目是否引入了JSP的相关依赖? 其次你的项目是否可以正确跳转到JSP?你可以直接跳转到一个不带标签的JSP页面. 再次 你的pom文件中指定的是什么页面的依赖模板?
getdate 2018-10-26
  • 打赏
  • 举报
回复
首先你的项目是否引入了JSP的相关依赖? 其次你的项目是否可以正确跳转到JSP?你可以直接跳转到一个不带标签的JSP页面. 再次 你的pom文件中指定的是什么页面的依赖模板?
walkuere 2018-10-25
  • 打赏
  • 举报
回复
jdk1.8 tomcat8 maven分别用了tomcat-embed-jasper 8 和 9 写版本号用早一些的版本pom就不报错了
但是打开后网页还是不解析,难道是因为我没有放在WEB-INF下面?
walkuere 2018-10-25
  • 打赏
  • 举报
回复
搜索了是需要pom里增加一个embed-jasper
但是一旦加进去,pom第三行就报错


Multiple annotations found at this line:
- Missing artifact org.eclipse.jdt:ecj:jar:3.13.102
- Failure to transfer org.eclipse.jdt:ecj:jar:3.13.102 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted
until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.eclipse.jdt:ecj:jar:3.13.102 from/to central (https://
repo.maven.apache.org/maven2): repo.maven.apache.org org.eclipse.aether.transfer.ArtifactTransferException: Failure to transfer org.eclipse.jdt:ecj:jar:3.13.102 from https://
repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced.
Original error: Could not transfer artifact org.eclipse.jdt:ecj:jar:3.13.102 from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org at
org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:240) at
org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:208) at
org.eclipse.aether.internal.impl.DefaultArtifactResolver.gatherDownloads(DefaultArtifactResolver.java:563) at
org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:481) at

81,090

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧