随笔分类 - Java
摘要:package javaapplication25; import java.io.IOException; import java.io.InputStream; import java.util.HashMap; import java.util.Map; import org.apache.c
阅读全文
摘要:警告信息: 2022-12-9 9:22:04 org.apache.http.client.protocol.ResponseProcessCookies processCookies警告: Invalid cookie header: "Set-Cookie: EnwNJ0bFlEL6O=59L
阅读全文
摘要:1:添加依赖 <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId> <version>3.4.3.4</version> </dependency> <depen
阅读全文
摘要:1.修改根目录下pom.xml文件,注释mybatis依赖,引入mybatis-plus依赖。 <!--<dependency>--> <!--<groupId>org.mybatis.spring.boot</groupId>--> <!--<artifactId>mybatis-spring-b
阅读全文
摘要:private <T> Predicate<T> distinctByKeys(Function<? super T, Object> ...keyExtractors) { Map<Object, Boolean> seen = new ConcurrentHashMap<>(); return
阅读全文
摘要:1:XML脚本 <insert id="importExcel"> insert all <foreach collection="list" item="item" index="index" separator=" "> into ${tableName} values (#{item.c1},
阅读全文
摘要:public static void mergeCell(List<QsggDTO> list, Sheet sheet, int[] index){ int id1 = 0; int id2 = 0; int firstRow = 2; int lastRow = 2; QsggDTO qsggD
阅读全文
摘要:<plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <includeSystemScope>true</inclu
阅读全文
摘要:在pom配置文件中增加以下配置即可: <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>3.1
阅读全文
摘要:ExecutorService service = Executors.newCachedThreadPool(); Future<Result> future = service.submit(new Callable<Result>() { @Override public Result cal
阅读全文
摘要:1:add.py a = 100 b = 200 print (a + b) 2:测试代码 Process proc = Runtime.getRuntime().exec("python D:\\project\\python\\add.py"); BufferedReader in = new
阅读全文
摘要:说明:使用spring-boot-starter-quartz实现定时任务处理,并将定时任务持久化到mysql数据库,数据源采用druid-spring-boot-starter。 1.添加Maven依赖 <dependencies> <dependency> <groupId>org.spring
阅读全文
摘要:1:AddressVo.java package com.wzh.app.address; public class AddressVo{ private long id; private long personId; private String address; public long getI
阅读全文
摘要:错误信息如下: Caused by: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class org.apache.ibatis.executor.loader.java
阅读全文
摘要:在使用Hibernate进行一对多关联关系映射时,在进行查询时,出现 Infinite recursion (StackOverflowError) (through reference chain 错误信息。 (1)PersonEntity @Entity( name = "t_person")
阅读全文
摘要:在LocalDate类型字段上面增加: @JsonFormat(pattern = "yyyy-MM-dd")private LocalDate birth; 注解即可。
阅读全文
摘要:1.添加Maven依赖 <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi-ooxml</artifactId> <version>4.1.2</version> </dependency> 2.Word文档模版中以${xxx
阅读全文
摘要:下载地址:https://github.com/fex-team/ueditor/releases/tag/v1.4.3.3 应用服务器使用:weblogic 源码下载后,将ueditor相关文件放置到Web目录 (1)修改ueditor.config.js配置文件 增加以下配置: window.U
阅读全文