'Creating a new thymeleaf template in IntelliJ
I am using IntelliJ to make an app that uses thymeleaf but when I click to create a new file there is no option for thymeleaf. I know thymeleaf files are just html, but it seems like there should be a preconfigured option for this?
Solution 1:[1]
Use Plugin Configuration Wizard to enable Thymeleaf plugin.
You can manage plugins to enable or disable plugins in intellij.
or
File -> Other Settings -> Config Plugins -> check thymeleaf.
Don't forget to add xmlns:th=”http://www.thymeleaf.org”
in HTML root as shown here.
Solution 2:[2]
File -> Other Settings -> Config Plugins -> check thymeleaf.
Add dependency in file: porm.xml
In HTML,don't forget to add
xmlns:th="http://www.thymeleaf.org"
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Shridhar R Kulkarni |
Solution 2 | cng.buff |