[Unable to compile class for JSP] with root cause java.lang.IllegalArgumentException: Negative time

错误现象

用idea+tomcat调试项目时,报错[Unable to compile class for JSP] with root cause
java.lang.IllegalArgumentException: Negative time

原因

[Unable to compile class for JSP] with root cause java.lang.IllegalArgumentException: Negative time
配置路径时候application context 多了最后的/
在启动tomcat的时候,有警告 A context path must either be an empty string or start with a ‘/’ and do not end with a ‘/’.

解决方法

去掉application context 多了最后的/