我正在尝试测试我的Spring MVC控制器,但我一直收到与Thymeleaf模板相关的错误。我真的不想在控制器测试中处理模板错误,因为这不是我真正感兴趣的。当模板不存在时让测试失败是可以的,但现在我收到了与基于错误代码找不到消息相关的错误。org.springframework.web.servlet.support.BindStatus.getErrorMessages(BindStatus.java:277)
at org.thy
我使用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.
当我添加'Springboot Web Starter‘时,springBoot默认使用了哪种视图技术。如果我想使用JSP,我需要包含'tomcat-embed-jasper‘或'SpringBootThymeleaf Starter’作为胸腺模板。所以我想知道'SpringBoot Web Starter‘的默认视图技术。