![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
idea
且随风而行
别问规划和梦想,我就想躺着把钱赚了
展开
-
Nacos连接不上:Ignore the empty nacos configuration and get it based on dataId
这次产生问题的原因为nacos版本配置问题,当nacos版本为1.0.x的时候需要指定group,而我用的nacos版本为2.0.4不需要指定group,去掉group即可找到配置文件正常运行。服务启动有警告信息:Ignore the empty nacos configuration and get it based on dataId。可正常连接nacos,未报nacos连接错误信息。application.yml文件配置正确。原创 2024-03-01 10:48:45 · 4013 阅读 · 0 评论 -
Mybatis下使用PageHelper插件,但是PageHelper.startPage()方法不起作用
阐述问题因为 com.github.pagehelper.PageHelper 分页有一个坑在里面,分页条件一定要放在查询正上方,如果中间加入其他查询条件,分页就会失效如下图:分页查询作用在basParameterService.getParameterIdByCode方法里的查询上:修改为以下代码分页即可正常生效:...原创 2022-02-11 10:18:03 · 1275 阅读 · 0 评论 -
LambaQueryWrapper的经常使用方法(修改、查询、删除)
public void main(String[] args) { //修改方法 String unitId = "1"; //将UnitCompanyCategory表下UnitId值为1对应的unitCategoryId字段数据改为1 String categoryId = "1"; LambdaUpdateWrapper<UnitCompanyCategory> lambdaUpdateWrapper = ne原创 2022-01-11 14:54:06 · 14132 阅读 · 6 评论 -
使用Mybatis插件下时间类型LocalDateTime和LocalDate无法保存空数据问题
在实体类字段上加上@TableField(updateStrategy = FieldStrategy.IGNORED)就能解决时间类型参数无法保存的问题了。 /** * 购买时间 */ @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") @TableField(updateStrategy = FieldStrategy.IGNORED) private LocalDateTim.原创 2021-12-03 16:44:33 · 1849 阅读 · 0 评论 -
idea打开拉下来的maven项目无法运行(快速解决方法)
首先选择pom文件右键添加为Maven Project然后在右侧maven标签下导入相关依赖包如果是分布式项目的话,就将相关模块项目的pom文件都放进来并导入相关依赖包可以正常运行项目了原创 2021-07-08 16:17:42 · 4449 阅读 · 1 评论