日常bug记录
翻山越玲
你间歇的努力和蒙混过关 都是对之前努力的清零
展开
-
【日常BUG】Failed to configure a Datasource: ‘url‘ attribute is not specified and no embedded datasource
【代码】【日常BUG】Failed to configure a Datasource: ‘url‘ attribute is not specified and no embedded datasource。原创 2023-07-16 09:23:38 · 153 阅读 · 0 评论 -
【日常BUG】批量插入数据时报错: There is no setter for proerty named uptByd‘ in ‘class ...
排查过后发现是实体类中没有设置要填充的id字段,但是mybatisplus中设置了。找不到字段,所以报错了,解决办法是注释掉如下字段。:定义了自动填充策略,使用mybatis-plus 配置了属性自动注入。实体类上也定义了需要自动填充的字段。原创 2023-07-13 08:18:13 · 405 阅读 · 0 评论 -
【日常BUG】使用mapstruct进行对象类型转换时报错:nested exception is ong.apache.ibatis.reflection.ReflectionException
使用mapstruct进行对象类型转换时报错:nested exception is ong.apache.ibatis.reflection.ReflectionException。:导入了两个mapstruct包,去掉一个即可。原创 2023-07-13 08:10:00 · 86 阅读 · 0 评论 -
【日常BUG】org.springframework.web.bind.MissingPathVariableException、
*报错:**org.springframework.web.bind.MissingPathVariableException: Missing URI template variable ‘stationName’ for method parameter of type String。原创 2023-06-22 15:05:40 · 211 阅读 · 0 评论 -
【日常BUG】启动redis报错:由于目标计算机积极拒绝,无法连接
*解决办法:**打开命令运行窗口,进入cmd,然后进入redis安装的目录,回车之后就会进入命令运行窗口,输入。原创 2023-06-22 15:01:04 · 211 阅读 · 0 评论 -
【日常BUG】Caused by: org.springframework.jdbc.UncategorizedSQLException
*原因:**数据库里的字段类型是dateTime,用MyBatis-plus生成的实体类型时LocalDateTime。**解决办法:**将实体类型改为Date。原创 2023-06-22 14:55:16 · 751 阅读 · 0 评论