06 2019 档案
摘要:菜鸟学习,不对之处,还请纠正。 需要批量更新数据库的某些数据,项目使用的是JPA,刚对mybatis熟悉一点,又换成了JPA。。。 有点懵。 查询了一番之后,发现可以使用 In findByIdIn(Collection<?> c) where id in (?)试验了一下,可以满足我的需求。先贴代
阅读全文
摘要:1.第一种方式if(partsSalesOrderTypes.GroupBy(entity => new { entity.Name, entity.Code }).Any(array => array.Count() > 1)) { /*违反多字段唯一时,提示信息处理*/ return;}2.第二
阅读全文
摘要:1.调用: UserList = UserList.ToList().Intersect(userIDList, new MyUserComparer()).AsQueryable(); 2.需要重写的方法:public class MyUserComparer : IEqualityCompare
阅读全文
摘要:var beatles = (new[] { new { inst = "张三" , age="50" }, new { inst = "张三" , age="20" }, new { inst = "何英" , age="35" }, new { inst = "张三" , age="60" },
阅读全文
摘要:在 Pom4 中,dependency 元素中引入了 scope 元素,这是一个很重要的属性。在Maven 项目中 Jar 包冲突、类型转换异常的很大原因是由于 scope 元素使用不当造成的。 scope 元素的作用:控制 dependency 元素的使用范围。通俗的讲,就是控制 Jar 包在哪些
阅读全文
摘要:idea中Mark Directory As里的Sources Root、ReSources Root等的区别 1、Source roots (or source folders) 通过这个类指定一个文件夹,你告诉IntelliJ IDEA,这个文件夹及其子文件夹中包含的源代码,可以编译为构建过程的
阅读全文
摘要:坑:以上方式链接多数据源时, 在springboot1.x时 datasource上要在一个写数据源上标记@Primary为主数据源 而在springboot2.X时则不需要
阅读全文
摘要:sping boot/cloud配置文件 on 读取为true 原文地址:https://blog.csdn.net/hb9176070/article/details/82749771 最近在写spring cloud 项目时需要配置开关,按照以往写项目的习惯,就在配置文件命名了key 之后写了
阅读全文
摘要:原文地址: https://www.cnblogs.com/moonvan/p/3372156.html 目录 常规 找到开发工具 用最新的开发版 移动开发工具位置 开发工具调试响应式设计 学习快捷键 Console 控制台 Log, Info, Debug, Warn, Error 输出数据表格
阅读全文