摘要:
SELECT DATE_FORMAT(date,'%Y-%m-%d') AS date,IFNULL(data.hour,0) AS hour, IFNULL(data.num, 0) AS countFROM ( SELECT @days := DATE_ADD(@days, INTERVAL - 阅读全文
摘要:
list去掉某一元素,其余元素相同去重List<EcologyRelation> collect = value.stream().collect(Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(Com 阅读全文
摘要:
List<String> rList= new ArrayList<String>(Arrays.asList(item.get("reqList").split(",")));rList.removeAll(reqList);String rs="";for (String r : rList){ 阅读全文
摘要:
ORA-00001: 违反唯一约束条件 (xxxx) xxxx为你的报错的约束值 不说别的,直接照着下面写就完事 _seq千万别忘了 解决方法: 第一步:查询违反约束的序列select a.constraint_name,a.constraint_type,b.column_name,b.table 阅读全文
摘要:
/** * 以行为单位读取文件,常用于读面向行的格式化文件 * @param fileName 文件名 */ public static void readFileByLines(String fileName){ File file = new File(fileName); BufferedRe 阅读全文
摘要:
Resource接口Spring的Resource接口代表底层外部资源,提供了对底层外部资源的一致性访问接口。Java代码 收藏代码public interface InputStreamSource {InputStream getInputStream() throws IOException; 阅读全文
摘要:
public static void readWantedText(String url, String wanted) { try { FileReader fr = new FileReader(url); BufferedReader br = new BufferedReader(fr); 阅读全文
摘要:
import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.util.HashSet; import java.util.Set; public class Rea 阅读全文
摘要:
//固定写法,获取配置列表public void getPropertiesList() throws Exception{ ResourcePatternResolver loader = new PathMatchingResourcePatternResolver(); Resource[] 阅读全文
摘要:
有表user id 主键 name 学生名字 age 年龄 create_time 创建时间 id name age create_time 1 张三 23 2020-07-12 14:26:36 2 李四 21 2020-07-13 14:26:36 3 王五 22 2020-07-15 14:2 阅读全文