P23
调试记录:
首次使用Thymeleaf中的th:href等组件启动项目时不可用
解决方案:重建项目
P26 32:00
调试记录:
cantnotreslovethemethod“get”…
解决方案:在表单中,在提交时提供方法method=“POST” action='#' Tomcat跳转到的页面-th:action='@{admin/login} '
th:src等相对起始路径为静态
P29
调试记录:
propertyorfield‘’cannotbefoundonobjectoftype‘com…’- maybenotpublicornotvalid?
解决方案:将setter/getter方法添加到pojo的type方法中
P34
调试记录:
空指针异常: invalid property‘id’ofbeanclass [ com.basco.POJO.blog ] : getterforproperty‘id’threw exception; nestedexceptionisjava.lang.reflect.invocationtargetexception
解决: Blog的id属性getter/setter不可用
P41
调试记录:
单击提交按钮提交表单以报告错误:不支持开机自检请求方法
解决方案: load(/[@{/comments}]/' )“不支持这些特殊注释。 load ) )/comments )”,然后报告空指针错误。 代码有问题,我不知道该更正并报告堆栈溢出,然后怎么办。
解决(真)上述特殊赋值方法要求添加script th : inline=' JavaScript '才能使用内联JS,即使使用特殊方法[ ]也是如此
P47
调试记录:
推荐博客显示有问题,认为创建了前台,认为方法跳错了位置,认为方法定义逻辑错误。
解决方案:未设置为推荐博客