人人开源分模块,非原生html报错,很难查找问题所在,有vue语法
<!DOCTYPE html>
<html>
<head>
<title>学生表</title> #parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
<div v-show="!showGrade"> <div v-show="showList">
<div class="grid-btn">
<div class="form-group col-sm-2">
<input type="text" class="form-control" v-model="q.name"
@keyup.enter="query" placeholder="姓名">
</div>
#if($shiro.hasPermission("teststudent:list")) <a
class="btn btn-default" @click="query">查询</a>
#if($shiro.hasPermission("teststudent:save")) <a
class="btn btn-primary" @click="add"><i class="fa fa-plus"></i> 新增</a>
#end #if($shiro.hasPermission("teststudent:update")) <a
class="btn btn-primary" @click="update"><i
class="fa fa-pencil-square-o"></i> 修改</a> #end
#if($shiro.hasPermission("teststudent:delete")) <a
class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i> 删除</a>
#end #if($shiro.hasPermission("teststudent:delete")) <a
class="btn btn-primary" @click="querygrade"><i class=""></i> 查询成绩</a>
#end
</div>
<table id="jqGrid"></table>
<div id="jqGridPager"></div>
</div> <div v-show="!showList" class="panel panel-default">
<div class="panel-heading">{{title}}</div>
<form class="form-horizontal">
<div class="form-group">
<div class="col-sm-2 control-label">姓名</div>
<div class="col-sm-10">
<input type="text" class="form-control"
v-model="testStudent.name" placeholder="姓名" />
</div>
</div>
<div class="form-group">
<div class="col-sm-2 control-label">性别</div>
<div class="col-sm-10">
<input type="text" class="form-control" v-model="testStudent.sex"
placeholder="性别" />
</div>
</div>
<div class="form-group">
<div class="col-sm-2 control-label">年龄</div>
<div class="col-sm-10">
<input type="text" class="form-control" v-model="testStudent.age"
placeholder="年龄" />
</div>
</div>
<div class="form-group">
<div class="col-sm-2 control-label">分数</div>
<div class="col-sm-10">
<input type="text" class="form-control"
v-model="testStudent.score" placeholder="分数" />
</div>
</div>
<div class="form-group">
<div class="col-sm-2 control-label"></div>
<input type="button" class="btn btn-primary" @click="saveOrUpdate"
value="确定" /> <input type="button"
class="btn btn-warning" @click="reload" value="返回" />
</div>
</form>
</div>
</div>
<div v-show="showGrade" class="panel panel-default">
<div class="panel-heading">{{title}}</div>
<form class="form-horizontal">
<div class="form-group">
<div class="col-sm-2 control-label">姓名</div>
<div class="col-sm-10">
<input type="text" class="form-control" v-model="testStudent.name"
placeholder="姓名" />
</div>
</div>
<div class="form-group">
<div class="col-sm-2 control-label">语文成绩</div>
<div class="col-sm-10">
<input type="text" class="form-control"
v-model="testStudent.score" placeholder="分数" />
</div>
</div>
<div class="form-group">
<div class="col-sm-2 control-label">数学成绩</div>
<div class="col-sm-10">
<input type="text" class="form-control"
v-model="testStudent.score" placeholder="分数" />
</div>
</div>
<div class="form-group">
<div class="col-sm-2 control-label">英语成绩</div>
<div class="col-sm-10">
<input type="text" class="form-control"
v-model="testStudent.score" placeholder="分数" />
</div>
</div>
<div class="form-group">
<div class="col-sm-2 control-label"></div>
<input type="button" class="btn btn-primary" @click="query"
value="确定" /> <input type="button"
class="btn btn-warning" @click="reload" value="返回" />
</div>
</form>
</div>
</div>
<script
src="${rc.contextPath}/js/sys/teststudent.js?_${date.systemTime}"></script>
</body>
</html>
报错的html
打开页面保以下内容:一直误以为是html便签的 缺失或多了,想不到是vue的语法错误。
HTTP Status 500 - Could not load Velocity template for URL [sys/teststudent.html]; nested exception is org.apache.velocity.exception.ParseErrorException: Encountered "<EOF>" at sys/teststudent.html[line 117, column 7]
type Exception report
message Could not load Velocity template for URL [sys/teststudent.html]; nested exception is org.apache.velocity.exception.ParseErrorException: Encountered "<EOF>" at sys/teststudent.html[line 117, column 7]
description The server encountered an internal error that prevented it from fulfilling this request.
exception
org.springframework.core.NestedIOException: Could not load Velocity template for URL [sys/teststudent.html]; nested exception is org.apache.velocity.exception.ParseErrorException: Encountered "<EOF>" at sys/teststudent.html[line 117, column 7]
Was expecting one of:
"(" ...
<RPAREN> ...
<ESCAPE_DIRECTIVE> ...
<SET_DIRECTIVE> ...
"##" ...
"\\\\" ...
"\\" ...
<TEXT> ...
"*#" ...
"*#" ...
"]]#" ...
<STRING_LITERAL> ...
<END> ...
<IF_DIRECTIVE> ...
<ELSEIF_DIRECTIVE> ...
<ELSE_DIRECTIVE> ...
<INTEGER_LITERAL> ...
<FLOATING_POINT_LITERAL> ...
<WORD> ...
<BRACKETED_WORD> ...
<IDENTIFIER> ...
<DOT> ...
"{" ...
"}" ...
<EMPTY_INDEX> ...
大概意思是,标签错误了,网页有没有提示出来,编译也可以通过,
找到这个来检查 ==网上找到了个html检查的页面,后来发现然并卵。 http://www.htmlhelp.com/tools/validator/direct.html.en
此页面检查的是提示下方错误,以为是这个问题,后来也不是

https://validator.w3.org/nu/#textarea
用这个网页提示如下,完全看不出来,一脸懵逼,

最后的最后:发现是 vue语法中我写少了 一个 #end,造成的 vue校验器无法通过,后台服务器无法生成 html页面返回。

建议:多用IDEA,个人经验,很多eclipse 报的错无法解答 用IDEA会有很不错的提示,也许能快速找到问题所在。
人人开源分模块,非原生html报错,很难查找问题所在,有vue语法的更多相关文章
- 关于人人开源renren-fast-vue 中npm install各种报错的解决方案
首先吐槽一下,因为这个问题我整了好几天,把报错信息复制百度,试遍了各种方法,node.js我是卸载了安装,安装了卸载,甚至renren-fast-vue我也删了再下,然后再删,无限循环.然而没有什么软 ...
- Python使用requests模块访问HTTPS网站报错`certificate verify failed`
使用requests模块访问HTTPS网站报错: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Nam ...
- Python3 fake_useragent 模块的使用和报错解决方案
在使用 Python 做爬虫的时候,我们需要伪装头部信息骗过网站的防爬策略,Python 中的第三方模块 fake_useragent 就很好的解决了这个问题,它将给我们返回一个随机封装了好的头部信息 ...
- Python的ConfigParser模块读取ini配置文件 报错(持续更新总结)
1.ConfigParser.MissingSection什么的错误巴拉巴拉一堆,其实根本上就是没有读到配置文件,然后我去检查了一遍路径,发现没有问题,我是将文件的路径作为一个字符串拼接好传到另一个专 ...
- myeclipse中导入的js文件报错(出现红叉叉,提示语法错误)
为了做一个页面特效,导入了一个jquery文件,怎想,myeclipse竟然报错说是语法错误,但是这个js文件我是从官网上下载的,不应该出错才对,百度谷歌之后终于找到了解决办法: 选中报错的js文件, ...
- MyEclipse10中导入的jquery文件报错(出现红叉叉,提示语法错误)
为了做一个页面特效,导入了一个jQuery文件,怎想,myeclipse竟然报错说是语法错误,但是这个js文件我是从官网上下载的,不应该出错才对,百度谷歌之后终于找到了解决办法: 选中报错的js文件, ...
- python文件名不要跟模块名相同,报错AttributeError: 'module' object has no attribute 'Differ'
python中的文件都会生成pyc文件,包括模块也是这样,所以调用模块的时候,实际上会调用模块.pyc文件:在这个前提下,如果将文件名命名成跟模块名一样,在同一目录下就会生成一个跟模块名一样的pyc文 ...
- 【mongodb分片中mogos启动的报错】
- myeclipse9中导入的jquery文件报错(出现红叉叉,提示语法错误)
选中报错的js文件, 右键选择 MyEclipse-->Exclude From Validation : 然后继续右键执行MyEclipse-->Run Validation 即可
随机推荐
- C++基础知识--DAY4
今天主要讲的是类中除了构造器析构器以外的拷贝构造器,运算符重载等问题 首先是拷贝构造器 1. copy constructor(拷贝构造) 其也是构造器,其地位和constructor的地位是一样的 ...
- python基础-格式化时间
module datatime用strftime格式化时间import datetimedatetime.datetime.now() 返回microsecond,要修改datetime.dateti ...
- 数据库日志redo和undo
数据库的ACID属性 Atomicity:原子性,以事物transact为最小单位,事物中的所有操作,要么都执行完,要么都不执行,不存在一部分操作执行,另一部分操作不执行的情况. Consistenc ...
- linux driver ------ platform模型,驱动开发分析
一.platform总线.设备与驱动 在Linux 2.6 的设备驱动模型中,关心总线.设备和驱动3个实体,总线将设备和驱动绑定.在系统每注册一个设备的时候,会寻找与之匹配的驱动:相反的,在系统每注册 ...
- STM32L011D4 ----- 低功耗
After resuming from STOP the clock configuration returns to its reset state (MSI, HSI16 or HSI16/4 u ...
- Grunt安装与环境配置
公司项目还没有前后端分离,而前端是使用node.js搭建起来的,现在需要自己动手开发,故学习下并做为记录防止以后忘记. grunt依赖node.js,所以在安装之前确保你安装了 Node.js.然后开 ...
- shell脚本删除log日志
删除log文件简单shell脚本 经常会遇到日志把磁盘占满的情况,引起低级故障.我个人在实际工作中,尝试了如下的方法,比较简单,而且快捷有效. #!/bin/bash # /root/log_dele ...
- qemu与libvirt编译与安装
qemu与libvirt编译与安装 一 .qemu编译前准备 以下链接为的本次编译环境为前提继续进行. http://www.cnblogs.com/grglym/p/7891253.html 1.安 ...
- C# enum、int、string三种类型互相转换
enum.int.string三种类型之间的互转 #代码: public enum Sex { Man=, Woman= } public static void enumConvert() { in ...
- ESB简介及选型(转) http://www.cnblogs.com/skyme/archive/2012/08/06/2623414.html
什么是ESB 企业服务总线(Enterprise Service Bus,ESB)的概念是从面向服务体系架构(Service Oriented Architecture, SOA)发展而来的.SOA描 ...