解决 "Whitelabel Error Page" 错误:HTML按钮标签中的Thymeleaf表达式问题
The error message "Whitelabel Error Page" typically occurs when there is an error in the application and no specific error handling is defined. In your case, it seems that there might be an issue with the button tags and their attributes in the HTML code you provided.
To troubleshoot the issue, you can try the following steps:
-
Check for any syntax errors in the HTML code. Make sure all opening and closing tags are properly nested and closed.
-
Verify that the
tpyeattribute in the button tags is spelled correctly. It should betypeinstead oftpye. -
Ensure that the Thymeleaf expressions
${likes.getLike(good.goods_id, memberId) != null}and${likes.getLike(good.goods_id, memberId) == null}are valid and evaluate to the expected values. -
Make sure the
goods_like()JavaScript function is defined and implemented correctly.
If the issue persists, you may need to provide more details or check the server-side logs for more specific error messages to further diagnose and resolve the problem.
原文地址: https://www.cveoy.top/t/topic/p5u9 著作权归作者所有。请勿转载和采集!