上一页 1 ··· 57 58 59 60 61 62 63 64 65 ··· 205 下一页
摘要: 本文涉及SpringBoot版本:v2.5.4 首先声明,pom.xml里不用配置。 把下面内容存到logback.xml(若不想敲字也可以点 https://files.cnblogs.com/files/heyang78/logback-xml-211015.rar 下载)里,然后保存到reso 阅读全文
posted @ 2021-10-14 21:19 逆火狂飙 阅读(1175) 评论(0) 推荐(0)
摘要: 有个特殊场景,有人想用select max(id)+1 from emp for update 得到新ID,当时还未执行此句,一群人针对此语句是锁行还是锁表争论了一会,准备做个实验验证一下,结果出现ORA-01786错误: SQL> select max(id) from emp for updat 阅读全文
posted @ 2021-10-14 18:39 逆火狂飙 阅读(1304) 评论(0) 推荐(0)
摘要: 有一张登录历史表: create table AccessHistory( id int, userid int, loginDate timestamp, primary key(id) ); 测试数据如下: insert into AccessHistory values(1,1,to_date 阅读全文
posted @ 2021-10-13 20:58 逆火狂飙 阅读(529) 评论(0) 推荐(0)
摘要: 代码: package ufo; import java.security.MessageDigest; import org.apache.commons.codec.binary.Base64; public class MD2_Test { public static void main(St 阅读全文
posted @ 2021-10-13 06:26 逆火狂飙 阅读(84) 评论(0) 推荐(0)
摘要: 代码: package ufo; import java.security.MessageDigest; import org.apache.commons.codec.binary.Base64; public class MD5_Test { public static void main(St 阅读全文
posted @ 2021-10-13 06:20 逆火狂飙 阅读(59) 评论(0) 推荐(0)
摘要: 严格来说,本文讲述的只是oracle的内容,但因为1Mpper类里写的SQL,故而就和MyBatis挨上了。 表定义: create table mc_user( id number(8), deleted number(1) default 0, create_time timestamp def 阅读全文
posted @ 2021-10-12 21:14 逆火狂飙 阅读(135) 评论(0) 推荐(0)
摘要: Oracle的trunc函数意为保持精度,如精度说明符缺失则精度保证到日,小于日的时分秒都不要了。 比如现在是21年10月11日21时31分,trunc之后,就只剩21年10月11日0时0分0秒了。 看下面的例子就更明白了: SQL> select to_char(sysdate-1,'yyyy-M 阅读全文
posted @ 2021-10-11 21:37 逆火狂飙 阅读(6012) 评论(0) 推荐(0)
摘要: 要将页面信息传递到控制器中,页面组件和控制器的注解、函数参数一定不能写错了,下面是个简单示例,有兴趣的可以参照: html页面: <div class="block-body"> <form action="userRegister" method="post"> <label>用户名</label 阅读全文
posted @ 2021-10-11 21:13 逆火狂飙 阅读(106) 评论(0) 推荐(0)
摘要: 本文例程: https://files.cnblogs.com/files/heyang78/mediaCool_211010pm.rar src/main/resources/templates 这个目录如果不存在就手动创建,它用于放置你要显示的网页 src/main/resources/stat 阅读全文
posted @ 2021-10-10 18:29 逆火狂飙 阅读(702) 评论(0) 推荐(0)
摘要: 刚才在 https://news.cnblogs.com/n/703437/ 上看到有人提到有趣的“睡眠排序”,忽然想到CountDownLatch正好可以用于实现一个。代码如下: package ufo.sleepsort; import java.util.ArrayList; import j 阅读全文
posted @ 2021-10-07 17:08 逆火狂飙 阅读(86) 评论(0) 推荐(0)
上一页 1 ··· 57 58 59 60 61 62 63 64 65 ··· 205 下一页