我使用spring引导来呈现页面。我也在用这片叶子。但是当我从浏览器调用它时,我得到了下面提供的异常。(TemplateEngine.java:1011) ~[thymeleaf-2.1.6.RELEASE.jar:2.1.6.RELEASE]
at org.thymeleaf.spring4.view.ThymeleafView.renderFragment(ThymeleafView.java:335) ~[thymeleaf-spring4-2.1.6.RELEA
使用Spring with Thymeleaf (spring-boot-starter-thymeleaf)当前版本。当我有一个某些字段为空的表单时,Thymeleaf在输入控件中显示为空。怎样才能让它只显示为空白? 只有当我使用fetch并替换div时才会发生这种情况。如果我从URL打开一个窗口,内容就没问题。发生什么事了呢?
我正在使用Spring,并试图了解控制器/视图部分是如何工作的,但是我在'/‘和任何其他路径上都会出现404错误。/resources/templates/index.html,因为我对Spring/Thymeleaf还不熟悉,我不确定哪个应该工作
Servlet.service() for servlet [dispatcherServlet