Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/spring-boot/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring框架中使用thymeleaf的颜色编码_Spring_Spring Boot_Thymeleaf - Fatal编程技术网

Spring框架中使用thymeleaf的颜色编码

Spring框架中使用thymeleaf的颜色编码,spring,spring-boot,thymeleaf,Spring,Spring Boot,Thymeleaf,我有一个经常更新的数据库。我想根据每一行显示优先级的时间对它们进行颜色编码。比如在每一行的开头有一个红点(最老的,3天以上)、黄点(中间,1-3天)或绿点(最新的,当天)。如何在Spring框架中使用Thymeleaf实现这一点?任何建议 问题是:你尝试了什么?你的数据库中也有时间戳吗?嗯,我对Spring和Thymeleaf很陌生,不知道从哪里开始。我在数据库上有时间戳。

我有一个经常更新的数据库。我想根据每一行显示优先级的时间对它们进行颜色编码。比如在每一行的开头有一个红点(最老的,3天以上)、黄点(中间,1-3天)或绿点(最新的,当天)。如何在Spring框架中使用Thymeleaf实现这一点?任何建议

问题是:你尝试了什么?你的数据库中也有时间戳吗?嗯,我对Spring和Thymeleaf很陌生,不知道从哪里开始。我在数据库上有时间戳。