简体   繁体   中英

Spring mvc- thymeleaf

I want to multiply the two values but unable to do it as it thrown error, I am new to thymeleaf template and trying to multiply item price and quantity.

Exception evaluating SpringEL expression: #aggregates.sum.![p.item.price * p.orderQuantity] (cart:49) .

Please help me to multiply the two number using thymeleaf template.

这个怎么样?

${#aggregates.sum(p.item.{price * orderQuantity})}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM