摘要: 经测试,正常情况下使用 record 是没有问题的,但若是使用了 resultMap,将会导致错误: ```Java There is no setter for property named 'xxx' in 'xxx' argument type mismatch ``` 首先, record 阅读全文
posted @ 2023-05-20 16:57 StarChenPy 阅读(533) 评论(0) 推荐(0) 编辑
摘要: 今天在学Mybatis的时候遇到了一个小问题,因为 .xml 文件在 main 文件夹下,并且 Gradle 默认的资源路径并不包括 main 文件夹,所以会出现找不到文件的错误。 解决方法: 添加资源路径 经实测,不需要添加 resources 文件夹的路径,Gradle 始终包含 resourc 阅读全文
posted @ 2023-05-18 19:45 StarChenPy 阅读(60) 评论(0) 推荐(0) 编辑
摘要: 如果出现调试时调试器直接退出,退出代码1。 在platfromio.ini中加入这样一行: debug_tool = stlink 原因是调试器没有默认工具,需手动指定。 阅读全文
posted @ 2023-05-17 16:14 StarChenPy 阅读(253) 评论(0) 推荐(0) 编辑