This is my Blog!!Welcome to you!!
【分享个人java学习心得和技术问题汇总】

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

 

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  判断语句

 

 

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

就可以了 。。。

 

 

 

未经允许不得转载:Java学习 » The only legal comparisons are between two numbers, two strings, or two dates.

分享到:更多 ()

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址