Intellij thymeleaf th namespace unconnected

I am using IntelliJ IDEA and I have the namespaces of thimeleafs. I created an employee form, which I include in other templates, so I did not specify a namespace, but it works fine when starting my application. Is there any way to change this behavior. I like the autocomplete function :-)

The 'th' namespace is not associated with an example:

'Th' namespace is unrelated

+4
source share
3 answers

There is no harm that defines your pieces in a well-formed document (including html, head, body, and so on). This is actually what the Thymeleaf Documentation describes .

thymeleaf, , , .

+5

, Spring, :

<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
  <head>
     <title>Hello</title>
  </head>
  <body>
  </body>
</html>

DOCTYPE. . Intellij Idea: Thymeleaf

+8

IDE Thymeleaf, , Thymeleaf.

FileOther SettingsConfig Plugins → tick Thymeleaf

screenshot of the plugin window

<html .... xmlns:th="http://www.thymeleaf.org">

+6

Source: https://habr.com/ru/post/1605820/


All Articles