
Java
K0000000r
这个作者很懒,什么都没留下…
展开
-
无需启动容器,即可遍历或查找Docker镜像内的文件。可以用于某些镜像扫描场景。
GitHub - ZZMarquis/docker-image-file-finder: Docker Image File Scanner原创 2022-01-16 18:43:18 · 1179 阅读 · 0 评论 -
Spring @Transactional注解使用注意事项
1注意设置rollbackFor属性,很多博客说默认只有RuntimeExcetion会触发回滚,经验证确实如此,所以rollbackFor最好应该设置如下:rollbackFor = {Exception.class},当然具体业务具体处理,可能有的业务抛出的某些异常并不需要触发回滚,所以此时应该细化处理异常。 2MySQL数据库表引擎应为InnoDB,否则不支持事务。但是XML...原创 2016-11-15 18:29:47 · 2220 阅读 · 0 评论 -
Java的前置++和后置++效率对比
1、基本类型的前置++和后置++比较private static void testPlus() { final long loopCount = 1000000000L; long start = 0L; long finish = 0L; long sum = 0L; start = System.currentTimeMillis(); for (long i ...原创 2016-12-21 22:10:58 · 1426 阅读 · 0 评论 -
Spring boot @Qualifier doesn't work with datasources
The error is indicating that at some point in the application, a bean is being injected by the type DataSource and not being qualified by name at that point.It does not matter that you have adde转载 2017-09-07 16:16:57 · 738 阅读 · 0 评论 -
[Java]基于BC库的国密算法(SM2\SM3\SM4\SM2证书签发)的应用
https://github.com/ZZMarquis/gmhelper原创 2018-03-23 11:44:23 · 10496 阅读 · 23 评论 -
Java遍历Map Key-Value的几种方式的效率对比
public static void main(String[] args) { traverseMap(); } public static void traverseMap() { long start = 0; long finish = 0; long sum = 0; Map&...原创 2018-07-23 10:12:43 · 3240 阅读 · 0 评论