摘要: create or replace procedure procedure_hello_testAS str VARCHAR(50);begin str:='hello world'; dbms_output.put_line ( 'str = ' || str );end;begin proced 阅读全文
posted @ 2021-06-25 09:21 四块五 阅读(78) 评论(0) 推荐(0) 编辑
摘要: (1)第一可以通过 top -Hp PID , jstack PID等查看占用CPU资源过高的线程是哪些?可能会看到是GC线程。或者是其他线程,如果是GC线程,那么jstat查看JVM垃圾回收器工作的情况。如果是其他业务线程,可能需要跟踪栈信息,追踪到代码中进行分析。(可能是一直循环处理业务,数据量 阅读全文
posted @ 2021-03-05 11:20 四块五 阅读(528) 评论(0) 推荐(0) 编辑
摘要: private static Throwable getTargetException(Throwable catchedException) { Throwable targetException = null; if (catchedException != null) { targetExce 阅读全文
posted @ 2020-11-12 15:18 四块五 阅读(220) 评论(0) 推荐(0) 编辑
摘要: https://www.zhihu.com/question/65502802 阅读全文
posted @ 2020-11-03 15:22 四块五 阅读(1599) 评论(0) 推荐(0) 编辑
摘要: 重写: 1.发生在父类与子类之间 2.方法名,参数列表,返回类型(除子类中方法的返回类型是父类中返回类型的子类)必须相同 3.访问修饰符的限制一定要大于被重写方法的访问修饰符(public>protected>default>private) 4.重写方法一定不能抛出新的检查异常或者比被重写方法申明 阅读全文
posted @ 2020-10-22 14:27 四块五 阅读(171) 评论(0) 推荐(0) 编辑
摘要: INSERT ALL <foreach collection="list" item="map"> INTO FG_ESTABLISHACCOUNT_DETAILS <trim prefix="(" suffix=")" suffixOverrides=","> DOCUMENT_NO, DOCUM 阅读全文
posted @ 2020-01-01 15:13 四块五 阅读(639) 评论(0) 推荐(0) 编辑
摘要: private static int batchSize = 3; public static void main(String[] args) { List<Integer> list = new ArrayList<>(); for(int i = 1;i<=10;i++){ list.add( 阅读全文
posted @ 2019-12-19 15:21 四块五 阅读(2157) 评论(0) 推荐(0) 编辑
摘要: try { requisition_no = this.testDocumentId(info);// 获取申请单号 } catch (java.lang.reflect.InvocationTargetException targetE) { throw new DWBusinessException("自动生成单号失败:"+ta... 阅读全文
posted @ 2019-10-31 14:13 四块五 阅读(395) 评论(0) 推荐(0) 编辑
摘要: List> list = new ArrayList(); Map stu1 = new HashMap(); stu1.put("name", "卫庄"); stu1.put("score", new BigDecimal(80)); list.add(stu1); Map stu2 = new HashMap(); st... 阅读全文
posted @ 2019-09-26 15:34 四块五 阅读(8330) 评论(1) 推荐(0) 编辑
摘要: 1.如果是本地测试,跨模组写法,如果是同模组的方法不会切新事务,而服务器上则一定会切新的事务! 2.如果建临时表,会导致后面的方法切到新的事务。 3.切数据库的时候,本地测试需要去掉事务管理,才可以真正的切换到其他数据库。 阅读全文
posted @ 2019-09-24 18:50 四块五 阅读(158) 评论(0) 推荐(0) 编辑