随笔分类 - java
摘要:https://blog.csdn.net/weixin_41888813/article/details/82885938
阅读全文
摘要:https://blog.csdn.net/lxj_1993/article/details/109451567
阅读全文
摘要:Bean with name 'orderChargeCarServiceImpl' has been injected into other beans [orderCarServiceImpl] in its raw version as part of a circular reference
阅读全文
摘要:/* * Copyright 2002-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this fi
阅读全文
摘要:https://www.jianshu.com/p/2f79ee33c8ad https://www.freesion.com/article/24951147266/ https://segmentfault.com/a/1190000013341344 https://blog.csdn.net
阅读全文
摘要:REQUIRED : 如果存在事务,就在当前事务里运行,否则的话就创建一个新的事务 (默认) NESTED:如果当前事务存在,则在嵌套事务中执行 看起来两个似乎作用是相同的,但是REQUIRED会跟着父任务一同提交,一同失败 。 而NESTED是 如果当前事务出现异常,本身进行回滚操作,但是父任务不
阅读全文
摘要:MyBatis Plus 添加多租户功能后 对某个Mapper方法 忽略多租户处理: 使用注解 @InterceptorIgnore(tenantLine = "true")
阅读全文
摘要:1、所有属性为private 2、提供默认构造方法 3、提供getter和setter 4、实现serializable接口 凡事被spring 创建的对象才能成为spring 的bean
阅读全文
摘要:public static void main(String[] args) { // 循环遍历Map的4中方法 Map<Integer, Integer> map = new HashMap<Integer, Integer>(); map.put(1, 2); // 1. entrySet遍历,
阅读全文
摘要:方法一: Controller中注入service的时候使用@Autowired自动注入,@Qualifier("beanId")来指定注入哪一个。 方法二: Controller中注入service的时候使用@Resource(type = 类名.class)来指定注入哪一个。 方法三: 每个se
阅读全文
摘要:对于同一个方法,上面加了n个注解,如下所示。 @AnnotationOne @AnnotationTwo public void test() { ……………………………… } 如果,不加order来强制表示顺序的话,这2个注解执行的默认顺序是什么样子的呢? 经查阅Spring官方文档https:/
阅读全文
摘要:UpdateWrapper<LogisticsOrderCharge> chargeUpdateWrapper = new UpdateWrapper<>();chargeUpdateWrapper.set("update_time",new Date());if(costType == Logis
阅读全文
摘要:enum switch case label must be the unqualified name of an enumeration constant 或 错误: 枚举 switchcase 标签必须为枚举常量的非限定名称case ColorType.GREEN: 在咱们Android开发中,
阅读全文
摘要:private final TransactionTemplate transactionTemplate;
阅读全文
摘要:@ApiModelProperty("资源状态名称") private String statusName; @Override public void setStatus(Integer status) { super.setStatus(status); this.statusName = En
阅读全文
摘要:接受两个参数的函数是BiFunction: BiFunction<Integer, Integer, Integer> f3 = (x, y) -> x + y; 不接受参数的函数是Supplier: Supplier<Double> f4 = () -> Math.random(); 或相当于:
阅读全文
摘要:package com.exe.competency.service.impl; import com.exe.competency.domain.RuleParam; import com.exe.competency.domain.RuleResult; import org.springfra
阅读全文
摘要:<sql id = "Condition_List"> <!-- 根据资源商类型查询 --> <if test="query.partnerType != null" > and a.type = #{query.partnerType} </if> <!-- 根据所在地查询 --> <if tes
阅读全文
摘要:OrderCharge oc = new OrderCharge();oc.setProcessInstanceId(spNo);LambdaUpdateWrapper<OrderCharge> luw = new LambdaUpdateWrapper<>();luw.eq(OrderCharge
阅读全文