【问题标题】:Creating a new thymeleaf template in IntelliJ在 IntelliJ 中创建新的 thymeleaf 模板
【发布时间】:2017-08-23 19:15:18
【问题描述】:

我正在使用 IntelliJ 制作一个使用 thymeleaf 的应用程序,但是当我单击创建新文件时,没有 thymeleaf 选项。我知道 thymeleaf 文件只是 html,但似乎应该有一个预先配置的选项?

【问题讨论】:

  • Intellij 的版本?
  • @ShridharR.Kulkarni IntelliJ Ultimate 2017.1

标签: intellij-idea thymeleaf


【解决方案1】:

使用插件配置向导启用 Thymeleaf 插件。

您可以manage plugins 在 intellij 中启用或禁用插件。

文件->其他设置->配置插件->检查百里香。

不要忘记在 HTML 根目录中添加 xmlns:th=”http://www.thymeleaf.org”,如图所示 here

【讨论】:

  • Thymleaf 插件已启用,但我没有用于创建预先配置有 thymeleaf 内容的新 html 文件的菜单选项。我想我可以创建自己的模板:)
猜你喜欢
  • 2018-10-15
  • 1970-01-01
  • 1970-01-01
  • 2011-09-19
  • 1970-01-01
  • 2019-10-26
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多