摘要: import java.math.BigDecimal; /** * 用于高精确处理常用的数学运算 * Created by lijuan on 2016/8/27. */ public class ArithmeticUtils { //默认除法运算精度 private static final 阅读全文
posted @ 2023-02-10 15:28 黄橙 阅读(20) 评论(0) 推荐(0)
摘要: LocalDateTime前后端传递转时间戳注解 @JsonDeserialize(using = LocalDateTimeDeserializer.class) @JsonSerialize(using = LocalDateTimeSerializer.class) 实体类加上这两个注解的作用 阅读全文
posted @ 2023-02-10 15:27 黄橙 阅读(381) 评论(0) 推荐(0)
摘要: import javax.imageio.ImageIO; import javax.swing.*; import java.awt.*; import java.awt.image.BufferedImage; import java.io.File; import java.io.FileOu 阅读全文
posted @ 2023-02-10 15:27 黄橙 阅读(159) 评论(0) 推荐(0)
摘要: @RequestMapping(value = "save", method = RequestMethod.POST) public R save(@RequestParam("imgFile") MultipartFile file) { String fileName = file.getOr 阅读全文
posted @ 2023-02-10 15:27 黄橙 阅读(363) 评论(0) 推荐(0)
摘要: import org.springframework.data.redis.core.StringRedisTemplate; import org.springframework.stereotype.Component; import javax.annotation.Resource; imp 阅读全文
posted @ 2023-02-10 15:26 黄橙 阅读(301) 评论(0) 推荐(0)
摘要: 我这里提供的是mybatis plus 和 xml配置文件结合的方式:直接从service层开始写: service //这是service层,多表分页的简单逻辑处理,重点是IPage 和 Map, // IPage 就是分页,把分页的参数传进来进行使用 // Map 是用来传参数使用的,携带你需要 阅读全文
posted @ 2023-02-10 15:26 黄橙 阅读(236) 评论(0) 推荐(0)
摘要: 集合转为数组 List<Long> chargeIds =new ArrayList<Long>(); Long [] ids=(Long[])chargeIds.toArray(); List<Map<String,Object>>转List<T> list map对象转list对象 List<M 阅读全文
posted @ 2023-02-10 15:25 黄橙 阅读(76) 评论(0) 推荐(0)