会员
商店
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
我没有出家
博客园
首页
新随笔
联系
管理
订阅
随笔- 61 文章- 0 评论- 0 阅读-
15911
2025年1月14日
poi 两个excel对比,输出到新的excel
摘要: List<String> ips1 = new ArrayList<>(); List<String> ips2 = new ArrayList<>(); File file1 = new File("C:\\Users\\Administrator\\Desktop\\20241224.xlsx"
阅读全文
posted @ 2025-01-14 10:52 我没有出家
阅读(5)
评论(0)
推荐(0)
编辑
2024年11月12日
Oracle 通过loop命令,遍历增加序列值
摘要: declare v_num1 int := 0 ; --声明一个变量,设置初始值是0 v_num2 int := 0 ; --声明一个变量,记录当前序列的值begin loop v_num1 := v_num2 + 1; if v_num1 > 100 then exit; end if; v_nu
阅读全文
posted @ 2024-11-12 14:59 我没有出家
阅读(12)
评论(0)
推荐(0)
编辑
2024年4月16日
nginx反向代理路径匹配详解
摘要: 1、基本规则 假如后端实际地址为: http://127.0.0.1:8080/api/user/getById?id=123 则: 1)通过nginx转发,使用http://127.0.0.1/api/user/getById?id=123访问 server { listen 80; server
阅读全文
posted @ 2024-04-16 11:22 我没有出家
阅读(839)
评论(0)
推荐(0)
编辑
2024年4月7日
@SpringbootApplication注解
摘要: @SpringBootApplication 是一个组合注解,由 @ComponentScan、@EnableAutoConfiguration 和 @SpringBootConfiguration 组成 @SpringBootConfiguration 与普通 @Configuration 相比,
阅读全文
posted @ 2024-04-07 20:49 我没有出家
阅读(7)
评论(0)
推荐(0)
编辑
2024年3月25日
sping 事务失效的8中情况
摘要: 1、抛出检查异常导致事务不能正确回滚 原因:Spring 默认只会回滚非检查异常 解决:配置 rollbackFor 属性 @Transactional(rollbackFor = Exception.class) 2、业务方法内自己 try-catch 异常导致事务不能正确回滚 原因:事务通知只有
阅读全文
posted @ 2024-03-25 23:21 我没有出家
阅读(43)
评论(0)
推荐(0)
编辑
2024年3月21日
多数据源,手动事务注解
摘要: 获取容器中的bean @Component public class ApplicationContextUtil implements ApplicationContextAware { public static ApplicationContext applicationContext; @O
阅读全文
posted @ 2024-03-21 15:47 我没有出家
阅读(21)
评论(0)
推荐(0)
编辑
将字段转驼峰,获取对象中的属性值
摘要: // 获取对象中属性的值 public String getFieldValue(String attrName) throws NoSuchMethodException, InvocationTargetException, IllegalAccessException { // 转驼峰 Str
阅读全文
posted @ 2024-03-21 15:37 我没有出家
阅读(20)
评论(0)
推荐(0)
编辑
2024年3月20日
spring refresh的流程(AbstractApplicationContext的refresh方法)
摘要: 12个阶段 1、prepareRefresh,做准备工作 2、obtainFreshBeanFactory,创建或获取beanfactory 3、prepareBeanFactory,准备beanfactory 4、postProcessBeanFactory,子类扩展beanfactory 5、i
阅读全文
posted @ 2024-03-20 21:32 我没有出家
阅读(22)
评论(0)
推荐(0)
编辑
2023年12月10日
java 策略模式解决if-else ,函数式接口解决编写多个子类的问题
摘要: /** * @author: szc * @date: 2023/9/2 22:45 * @version: 1.0 * @description: 从map中获取函数式接口,解决if-else 多个子类问题 */ @Service public class MapToInterface { @Au
阅读全文
posted @ 2023-12-10 20:09 我没有出家
阅读(22)
评论(0)
推荐(0)
编辑
2023年11月10日
获取过去某个时间到现在相差的时间天时分
摘要: private String getTimeOutStr(long nowDate, long lastTime) { String str =""; long minute = 1000 * 60 ; long hour = 1000 * 60 * 60 ; long day = 1000 * 6
阅读全文
posted @ 2023-11-10 16:51 我没有出家
阅读(16)
评论(0)
推荐(0)
编辑
下一页
公告
昵称:
我没有出家
园龄:
4年5个月
粉丝:
0
关注:
0
+加关注
<
2025年3月
>
日
一
二
三
四
五
六
23
24
25
26
27
28
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
5
搜索
常用链接
我的随笔
我的评论
我的参与
最新评论
我的标签
更多链接
随笔分类
git(1)
java(26)
linux(2)
mysql(10)
nginx(1)
oracle(5)
springboot(2)
基础面试(6)
其他(1)
前端(8)
设计模式(1)
锁(1)
随笔档案
2025年1月(1)
2024年11月(1)
2024年4月(2)
2024年3月(4)
2023年12月(2)
2023年11月(1)
2023年8月(5)
2022年3月(4)
2022年2月(1)
2021年11月(1)
2021年6月(2)
2021年5月(5)
2021年4月(7)
2021年3月(4)
2021年2月(3)
2021年1月(11)
2020年12月(5)
2020年9月(2)
阅读排行榜
1. zip 通过 response 下载 (多级文件夹压缩)(1589)
2. 判断值是否在list中(1251)
3. java读取图片中文字(1187)
4. java 操作PDF (spire.pdf)api(1117)
5. shiro获取当前登录的用户名(1069)
推荐排行榜
1. shiro获取当前登录的用户名(2)
点击右上角即可分享