摘要: 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) 编辑
摘要: 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) 编辑
摘要: 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) 编辑
摘要: @SpringBootApplication 是一个组合注解,由 @ComponentScan、@EnableAutoConfiguration 和 @SpringBootConfiguration 组成 @SpringBootConfiguration 与普通 @Configuration 相比, 阅读全文
posted @ 2024-04-07 20:49 我没有出家 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 1、抛出检查异常导致事务不能正确回滚 原因:Spring 默认只会回滚非检查异常 解决:配置 rollbackFor 属性 @Transactional(rollbackFor = Exception.class) 2、业务方法内自己 try-catch 异常导致事务不能正确回滚 原因:事务通知只有 阅读全文
posted @ 2024-03-25 23:21 我没有出家 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 获取容器中的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) 编辑
摘要: 12个阶段 1、prepareRefresh,做准备工作 2、obtainFreshBeanFactory,创建或获取beanfactory 3、prepareBeanFactory,准备beanfactory 4、postProcessBeanFactory,子类扩展beanfactory 5、i 阅读全文
posted @ 2024-03-20 21:32 我没有出家 阅读(22) 评论(0) 推荐(0) 编辑
摘要: /** * @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) 编辑
摘要: 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) 编辑
点击右上角即可分享
微信分享提示