org.thymeleaf.exceptions.TemplateProcessingException: Exception evaluating SpringEL expression
2017-09-21 11:46
726 查看
前言
本文中提到的解决方案,源码地址在:springboot-thymeleaf,希望可以帮你解决问题。本文中涉及的两个异常为我开发时遇到的,可能和你目前所要处理的bug不同,如果不是同一个问题,希望再找找其他文章。
异常
Exception evaluating SpringEL expression这个异常的出现应该有很多原因引起,本文中涉及的两个异常分别为:
org.springframework.expression.spel.SpelEvaluationException: EL1004E: Method call: Method service() cannot be found on com.my.blog.springboot.thymeleaf.util.MethodTest type
org.springframework.expression.spel.SpelEvaluationException: EL1011E: Method call: Attempted to call method test() on null context object
解决方案
异常1 :Attempted to call method on null context object 调用的方法处于一个空对象中,即调用实例为空。
解决方案可以参考我的这篇文章:Method call: Attempted to call method test() on null context object
异常2 :
Method cannot be found 方法不存在
解决方案可以参考我的这篇文章:Method service() cannot be found on com.my.blog.springboot.thymeleaf.util.MethodTest type
相关文章推荐
- spring boot部署中一个斜杠引发的血案--org.thymeleaf.exceptions.TemplateInputException
- org.thymeleaf.exceptions.TemplateInputException的几种解决办法
- 2017年9月16日 org.thymeleaf.exceptions.TemplateInputException
- org.springframework.expression.spel.SpelEvaluationException: EL1004E: Method call: Method service() cannot be found on com.my.blog.springboot.thymeleaf.util.MethodTest type
- nested exception is org.apache.ibatis.exceptions.PersistenceException:报错解决。
- [异常] Java文件上传异常org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: Processing of mul
- org.apache.ibatis.builder.BuilderException: The expression 'array' evaluated to a null value.
- Spring 3.0 抛异常 java.lang.ClassNotFoundException: org.springframework.expression.PropertyAccessor
- Exception:Request processing failed; nested exception is org.apache.ibatis.binding.BindingException
- Caused by: org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or null) to be
- 产生org.apache.jasper.JasperException: An exception occurred processing JSP page 的解决办法
- org.apache.ibatis.exceptions.PersistenceException
- org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed(转)
- org.springframework.web.util.NestedServletException: Request processing failed; nested exception is
- 整合SSM框架,启动时报错java.lang.NoClassDefFoundError: org/codehaus/jackson/JsonProcessingException
- rabbittmq 出现NullPointerException at org.springframework.amqp.rabbit.core.RabbitTemplate.onMessage
- org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.jdbc.BadSqlGrammarException: Unknown column 'viewpoint' in 'field list'
- Spring抛出异常:java.lang.ClassNotFoundException: org.springframework.expression.PropertyAccessor
- org.apache.ibatis.exceptions.PersistenceException: (或:文档结构必须从头至尾包含在同一个实体内)
- org.apache.jasper.JasperException:An exception occurred processing JSPpage/control/RuZhuControl.jsp