V
V
Valera Programmer2017-02-13 14:21:41
Java
Valera Programmer, 2017-02-13 14:21:41

How to remove spaces and tabs in Thymeleaf document?

Asked a question before, but for JSP
here is a link How to remove extra spaces and indents?
who knows how to do the same but on Thymeleaf?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Valera Programmer, 2017-02-26
@noddux

I decided by myself by reading the springboot configuration file
here are the settings if anyone is interested)
server.compression.enabled=true
server.compression.mime-types=text/html

S
ShamilSungatov, 2017-02-14
@ShamilSungatov

This can be achieved by adding a filter like Here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question