骑着蜗牛ひ追导弹' 2021-05-12 20:29 采纳率: 55.6%
浏览 21

Error resolving template [forms/form_layouts]

Controller层

@GetMapping(value = "/form_layouts")
    public String form_layouts() {
        return "forms/form_layouts";
}
<li class="menu-list"><a href=""><i class="fa fa-tasks"></i> <span>Forms</span></a>
    <ul class="sub-menu-list">
         <li><a th:href="@{/form_layouts}"> Form Layouts</a></li>
         <li><a th:href="@{/form_advanced_components}"> Advanced Components</a></li>
         <li><a th:href="@{/form_wizard}"> Form Wizards</a></li>
         <li><a th:href="@{/form_validation}"> Form Validation</a></li>
         <li><a th:href="@{/editors}"> Editors</a></li>
         <li><a th:href="@{/inline_editors}"> Inline Editors</a></li>
         <li><a th:href="@{/pickers}"> Pickers</a></li>
         <li><a th:href="@{/dropzone}"> Dropzone</a></li>
    </ul>
</li>

我的form_layouts.html就是放在templates下的form文件夾中,报错显示controller的返回有问题,该怎么解决?

  • 写回答

1条回答 默认 最新

  • 骑着蜗牛ひ追导弹' 优质创作者: Java技术领域 2021-05-12 20:38
    关注

     重启了Ideal解决了!?

     

    评论

报告相同问题?