有人知道如何压缩我使用Thymeleaf生成的HTML吗?
当我使用JSP时,我可以在这个依赖中使用googleCompressor:
<dependency>
<groupId>com.googlecode.htmlcompressor</groupId>
<artifactId>htmlcompressor</artifactId>
<version>1.5.2</version>
<optional>true</optional>
</dependency>
但是我现在已经转向使用Thymeleaf了,不知道如何压缩我的Thymeleaf页面。