随笔分类 -  java

1 2 3 4 5 ··· 11 下一页
摘要:public static List<String> getExcelProperty(Class<?> clazz,Integer index) { List<String> headers = new ArrayList<>(); Field[] fields = clazz.getDeclar 阅读全文
posted @ 2025-10-13 15:33 八英里 阅读(3) 评论(0) 推荐(0)
摘要:jstack 进程id 阅读全文
posted @ 2025-07-23 17:45 八英里 阅读(5) 评论(0) 推荐(0)
摘要:-Xms20m -Xmx20m 阅读全文
posted @ 2025-05-06 16:59 八英里 阅读(58) 评论(0) 推荐(0)
摘要:public SalaryAccountingStatementImportVO() { // 使用反射获取所有 BigDecimal 字段并设置为 ZERO for (Field field : this.getClass().getDeclaredFields()) { if (field.ge 阅读全文
posted @ 2025-04-28 16:16 八英里 阅读(9) 评论(0) 推荐(0)
摘要:/** * 导出url转图片 */ public class UrlImageConvert implements Converter<String> { @Override public WriteCellData<?> convertToExcelData(String value, Excel 阅读全文
posted @ 2025-04-22 14:45 八英里 阅读(37) 评论(0) 推荐(0)
摘要:public Boolean extendDetailUser(SalaryAccountingItemParam param){ //获取上期已选人员关联的项目 List<SalaryAccountingItemDetailUser> extendDetailUserList = this.lis 阅读全文
posted @ 2025-01-23 17:24 八英里 阅读(18) 评论(0) 推荐(0)
摘要:public class CarOilingRecordImportVO { /** * 油卡号 */ @ExcelProperty(value = "卡号/客户编号") @NotNull(message = "卡号/客户编号不能为空") private String cardCode; /** * 阅读全文
posted @ 2025-01-15 16:51 八英里 阅读(36) 评论(0) 推荐(0)
摘要:@Override public void initHoliday(HolidayDTO param) throws Exception { LocalDate startOfYear = param.getYear().atDay(1); LocalDate endOfYear = param.g 阅读全文
posted @ 2025-01-08 15:37 八英里 阅读(31) 评论(0) 推荐(0)
摘要:public void thumbnail(PutObjectRequest request, UploadParam param) throws IOException { if (ObjectUtils.isEmpty(param.getThumbnail()) || !param.getThu 阅读全文
posted @ 2024-12-13 16:11 八英里 阅读(24) 评论(0) 推荐(0)
摘要:GsonBuilder builder = new GsonBuilder(); builder.registerTypeAdapter(Date.class, new JsonDeserializer<Date>() { public Date deserialize(JsonElement js 阅读全文
posted @ 2024-11-04 15:09 八英里 阅读(46) 评论(0) 推荐(0)
摘要:public interface SalaryAccountingStatementImportBaseVO { String getIdCard(); } @Data public class SalaryAccountingStatementImportVO implements SalaryA 阅读全文
posted @ 2024-09-29 11:39 八英里 阅读(12) 评论(0) 推荐(0)
摘要:// 正确的嵌套Lambda表达式写法 queryWrapper.in(StaffTransfer::getState, Arrays.asList(4, 2, 1, 5)) .eq(StaffTransfer::getIsDelete, 0) .ne(StaffTransfer::getId, 2 阅读全文
posted @ 2024-08-06 16:16 八英里 阅读(4776) 评论(0) 推荐(0)
摘要:@Bean(name = "dbzyqsV102SqlSessionFactory") // @Qualifier表示查找Spring容器中名字为blogDataSource的对象 public SqlSessionFactory dbzyqsV102SqlSessionFactory(@Quali 阅读全文
posted @ 2024-07-30 16:09 八英里 阅读(46) 评论(0) 推荐(0)
摘要:package com.cloud.module.management.message.handler.mp; import cn.hutool.core.util.ObjectUtil; import cn.hutool.core.util.StrUtil; import com.alibaba. 阅读全文
posted @ 2024-07-30 11:41 八英里 阅读(200) 评论(0) 推荐(1)
摘要:through reference chain: com.cloud.module.smartkey.common.ResultManage["data] 直接返回obj 阅读全文
posted @ 2024-07-23 17:03 八英里 阅读(18) 评论(0) 推荐(0)
摘要:java.io.FileNotFoundException: MultipartFile resource [file] cannot be resolved to URL at org.springframework.core.io.AbstractResource.getURL(Abstract 阅读全文
posted @ 2024-07-05 17:40 八英里 阅读(773) 评论(0) 推荐(0)
摘要:public void export(ObjectDTO dto, HttpServletResponse response) { try { if (ObjectUtils.isEmpty(dto.getObjNumberList())) { throw new BusinessException 阅读全文
posted @ 2024-07-01 17:20 八英里 阅读(970) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2024-06-04 11:44 八英里 阅读(34) 评论(0) 推荐(0)
摘要:No serializer found for class java.io.FileDescriptor and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationF 阅读全文
posted @ 2024-04-28 15:49 八英里 阅读(168) 评论(0) 推荐(0)
摘要:后来发现是因为微服务之间调用,方法的主体参数只能有一个,也就是以封装对象为类型的参数只能有一个,否则就会报此错误。基本数据类型的参数可以有多个 阅读全文
posted @ 2024-04-28 14:57 八英里 阅读(272) 评论(0) 推荐(0)

1 2 3 4 5 ··· 11 下一页