thymeleaf

    1热度

    1回答

    我一直在创建使用Thymeleaf一个Spring MVC Web应用程序配置挣扎Spring MVC的。我不确定使用注释来配置它的确切方式。这里是我的两个相关类在这里: webPageController.java package webservice; import org.springframework.beans.factory.annotation.Autowired; impor

    0热度

    1回答

    我写了一个thymleaf div,我想在另一个thymleaf模板页面中包含。 但是我得到这个错误:org.thymeleaf.exceptions.TemplateInputException:错误解决模板“片段/分页”,模板可能不存在或可能不被任何配置的模板解析器来访问(managetasks) 下面是主要的网页代码 <!DOCTYPE html> <html lang="en" xmln

    -1热度

    1回答

    试图将表单提交时的变量传递给结果页面,但每次都返回null。无论我尝试了多少变化。 所以我得到映射,后为login.html的: @GetMapping("/login") public String greetingForm(Model model) { model.addAttribute("User2", new User()); return "login"; }

    0热度

    1回答

    @GetMapping("add") public String addPart(Model model) { model.addAttribute("suppliers", this.partService.getSupplierNames()); model.addAttribute("part", new AddPartViewModel()); retur

    0热度

    1回答

    我正在查看使用Spring Boot和React的以下教程。 https://spring.io/guides/tutorials/react-and-spring-data-rest/ 由于React被渲染到Thymeleaf模板中,因此React会在这里进行服务器端渲染吗?对于上下文,我已经放置了下面教程中的Thymeleaf模板和React文件代码。 的src /主/资源/模板/ index

    0热度

    1回答

    我已经开发出一种应用(SpringBootWebSecurity)与ThymeLeaf和Gradle。用户可以使用thymeleaf表单登录。 然后,我开发了另一种新的应用程序(SpringBootJSP)维持先前的结构(SpringBootWebSecurity),但这个时候,我只是改变了构建工具(maven)和视图(jsp)以适当的依赖关系。两个应用程序的数据库和其他凭证保持不变。 (多个)用

    0热度

    1回答

    因此,我正在编写一个弹性启动应用程序Thymeleaf作为我的模板引擎。 当我通过Spring Tool Suite运行我的项目时,一切正常。 然而,当我运行时产生mvn clean package和运行罐子,我的布局:片段停止工作,称它无法解析的时候: org.thymeleaf.exceptions.TemplateInputException:错误解决 模板“布局”模板可能不存在或可能没有T

    0热度

    2回答

    更新:形容询问清楚 我创建和thymeleaf一个web应用程序了,如果我打开登录页面,一切工作正常,然后登录,然后转向管理模块或报告模块。 当我在浏览器中输入网址locahost:8080/send/kf/index(需要进行身份验证,但我可以打开所有自定义过滤器中的访问权限)时,会发生混淆,页面将不加载js和css。在调试模式下,我看到/send/kf被意外投入到下面的路径中。如果我访问loc

    2热度

    1回答

    我在Project和Requirement实体之间有一对多的关系。 HTML: <div class="container"> <div class="row"> <div class="col-sm-2"></div> <div class="col-sm-8"> <form action="#" th:action="@{/projects/up

    0热度

    1回答

    我试图按照此作为参考Serving Static content in SpringBoot import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework