随笔分类 -  2022java

摘要:查找相同数据SQL: select * from table where name in (select name from table group by name having count(name) > 1); 阅读全文
posted @ 2022-08-12 11:18 才没有木头 阅读(51) 评论(0) 推荐(0)
摘要://截取二个字符中间的信息String fileUrl ="22-CD-213123125.pdf";//获取第二个-的下标int i = fileUrl.indexOf("-", 3) + 1;//获取第一个.的下标int i1 = fileUrl.indexOf(".");//截取String 阅读全文
posted @ 2022-08-03 16:15 才没有木头 阅读(94) 评论(0) 推荐(0)
摘要:List<PdTechnologyCommunityComment> pdTechnologyCommunityComments = pdTechnologyCommunityCommentMapper.listAllByPdTechnologyCommunityComment(var); 需要组装 阅读全文
posted @ 2022-07-20 15:25 才没有木头 阅读(84) 评论(0) 推荐(0)
摘要:/** * 构建前端所需要树结构 * * @param menus 菜单列表 * @return 树结构列表 */public List<BOMBaseDict> buildMenuTree(List<BOMBaseDict> menus){ List<BOMBaseDict> returnList 阅读全文
posted @ 2022-05-18 14:02 才没有木头 阅读(39) 评论(0) 推荐(0)
摘要:SpringBoot打印MyBatis sql日志输出 默认情况下mybatis是不开启SQL日志输出,需要手动配置 方法一:(在mybatis整合在springboot框架的情况下) 只需要在配置文件【application.yml】中加入以下配置:(其中com.tj.mapper为项目mappe 阅读全文
posted @ 2022-05-18 09:19 才没有木头 阅读(2848) 评论(0) 推荐(0)