Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

thymeleaf 给head添加参数调用报错<head th:fragment="common_head(title,metas,links)"> #7

Open
Ucaen opened this issue Sep 23, 2020 · 0 comments

Comments

@Ucaen
Copy link

Ucaen commented Sep 23, 2020

给公共模板增加参数:,然后页面中采用

<title>机器人XX页面</title> 方式,目的是添加当前页面和公共页面head中的所有标签。结果访问页面的时候报了404!后台报错如下: org.thymeleaf.exceptions.TemplateProcessingException: Could not parse as fragment selection: "common :: common_head(~{:: title},~{},~{:: link})" (robot/robot)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant