首页 javaWEB The only legal comparisons are between two numbers, two strings, or two dates.

The only legal comparisons are between two numbers, two strings, or two dates.

  ERROR [runtime] Template processing error: “The…

 

ERROR [runtime] Template processing error:

“The only legal comparisons are between two numbers, two strings, or two dates.\nLeft  hand operand is a

freemarker.template.SimpleScalar\nRight hand operand is a freemarker.template.SimpleNumber\n”

 

 

The only legal comparisons are between two numbers, two strings, or two dates.

Left  hand operand is a freemarker.template.SimpleScalar

Right hand operand is a freemarker.template.SimpleNumber

 

 

简单理解就是 等式   的左边 不等于右边

 

再通俗一点      String !=  Integer

 

还不理解吗      “xxx”!= 1

 

一般出现的地方

在 freemark  的 if  判断语句

 

第一个是 long类型  第2个却是  String类型
<#if list.yq1012=yq1012>
 www.javaweb.top
</#if>

 

决解的方法就是把他们两个改成相同类型额

就可以了 。。。

 

 

 

免责声明:文章内容不代表本站立场,本站不对其内容的真实性、完整性、准确性给予任何担保、暗示和承诺,仅供读者参考,文章版权归原作者所有。如本文内容影响到您的合法权益(内容、图片等),请及时联系本站,我们会及时删除处理。

为您推荐

nodejs 整理记录

nodejs 整理记录

下载包 https://blog.csdn.net/m0_59878114/article/details/120274...
websocket测试html

websocket测试html

<!DOCTYPE html> <html> <head> <meta cha...
bigdemical两个数比较大小

bigdemical两个数比较大小

/*int result = bigdemical1.compareTo(bigdemical2) result = -...
Beetl2.7 中文文档

Beetl2.7 中文文档

Beetl目前版本是2.7.23,相对于其他java模板引擎,具有功能齐全,语法直观,性能超高,以及编写的模板容易维护等...
纯CSS实现多个便签在一行展示,拖动滚动

纯CSS实现多个便签在一行展示,拖动滚动

div <h2>请注意需要在移动端预览,PC端拖拽无效果</h2> <div class=...
返回顶部