Exception evaluating SpringEL expression: "searchMap.keywords" template: "search"
2020-04-28 18:58
225 查看
<form th:action="@{/sku_search/list}" class="sui-form form-inline"> <div class="input-append"> <input th:type="text" id="autocomplete" name="keywords" th:value="${searchMap.keywords}" class="input-error input-xxlarge" /> <button class="sui-btn btn-xlarge btn-danger" th:type="submit">搜索</button> </div> </form>
**
由于这段代码有一个form标签表单提交,提交的字段是name=keywords,当我服务启动时,浏览器直接访问,地址栏没有带上此字段,所以后台报错。**
一时疏忽大意了,所以在测试的时候要带入搜索关键字,让后台searchMap能接收到,这样就ok了
相关文章推荐
- org.thymeleaf.exceptions.TemplateProcessingException: Exception evaluating SpringEL expression
- Caused by: org.thymeleaf.exceptions.TemplateProcessingException: Exception evaluating SpringEL expre
- org.attoparser.ParseException: Exception evaluating SpringEL expression: "rvo.user.username" (templa
- org.thymeleaf.exceptions.TemplateProcessingException: Could not parse as expression: "row-1,colu...
- freemarker.core.InvalidReferenceException: Expression parameters.parseContent is undefined on line 45, column 28 in template/aja
- freemarker.core.InvalidReferenceException: Expression parameters.parseContent is undefined on line 45, column 28 in template/aja
- 异常评估OGNL表达式-原标题:Exception evaluating OGNL expression
- org.elasticsearch.action.ActionRequestValidationException: Validation Failed: 1: template is missing
- java.lang.ClassNotFoundException: org.elasticsearch.action.admin.indices.map
- spring security 中异常 org.springframework.expression.spel.SpelEvaluationException
- zoj_3674_Search in the Wiki(map)
- 基于表达式模版(expression template)的惰性求值(lazy evaluation)
- hdu 2222 Keywords Search (模板)
- org.apache.spark.SparkException: Cannot use map-side combining with array keys . 【Scala】可供参考
- System.Exception when running SearchAsync of Contacts in application_launching event handler 未处理Exception
- hdu 2222 Keywords Search (ac自动机)
- Expression Template
- HDU 2222 Keywords Search 【AC自动机模板】
- org.apache.ibatis.builder.IncompleteElementException: Could not find parameter map
- controller返回值不能使用thymeleaf(ERROR org.thymeleaf.TemplateEngine - Exception template might not exist )