随笔分类 -  Java

摘要:JAVA注解 : https://www.awaimai.com/2591.html HashMap : https://blog.csdn.net/qq_40574571/article/details/97612100 JAVA中final关键字的作用:https://www.cnblogs.c 阅读全文
posted @ 2021-07-11 14:47 清语堂 阅读(24) 评论(0) 推荐(0) 编辑
摘要:原文:https://blog.csdn.net/zc1320030382/article/details/78366370?utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Ed 阅读全文
posted @ 2021-07-05 16:00 清语堂 阅读(132) 评论(0) 推荐(0) 编辑
摘要:在JDBC中通常用Statement类的对象实现对数据库的更新(增、删、查、改)操作 //1、获取数据库连接 connection = getConnection(); //2、准备sql语句 String sql = null; // sql = "INSERT INTO custom(NAME, 阅读全文
posted @ 2021-07-05 11:17 清语堂 阅读(152) 评论(0) 推荐(0) 编辑
摘要:说明:Statement stmt = con.createStatement( ResultSet. TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY); 通用格式为:Statement stmt=con.createStatement(int 阅读全文
posted @ 2021-07-05 08:11 清语堂 阅读(683) 评论(0) 推荐(0) 编辑
摘要:https://docs.microsoft.com/zh-cn/sql/connect/jdbc/updating-large-data-sample?view=sql-server-ver15 备注 Microsoft JDBC Driver for SQL Server 提供四个类库文件:sq 阅读全文
posted @ 2021-07-05 08:07 清语堂 阅读(195) 评论(0) 推荐(0) 编辑
摘要:把异常抛给调用它的地方,调用 的地方就必须try catch,不然编译都不过。。这样代码就更健壮了。 阅读全文
posted @ 2021-07-04 10:19 清语堂 阅读(691) 评论(0) 推荐(0) 编辑
摘要:https://docs.microsoft.com/zh-cn/sql/connect/jdbc/reading-large-data-with-stored-procedures-sample?view=sql-server-ver15 package com.example.wfydemo.c 阅读全文
posted @ 2021-07-03 16:39 清语堂 阅读(555) 评论(0) 推荐(0) 编辑
摘要:https://docs.microsoft.com/zh-cn/sql/connect/jdbc/caching-result-set-data-sample?view=sql-server-ver15 此 Microsoft JDBC Driver for SQL Server 示例应用程序说明 阅读全文
posted @ 2021-07-03 11:32 清语堂 阅读(402) 评论(0) 推荐(1) 编辑
摘要:package com.example.wfydemo.controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation. 阅读全文
posted @ 2021-07-03 11:30 清语堂 阅读(107) 评论(0) 推荐(0) 编辑
摘要:原文 :https://blog.csdn.net/weixin_42245375/article/details/102813200 一、常见数据库驱动 1.比较(1)Statement操作数据库:增删改:executeUpdate()查询:executeQuery(); (2)PreparedS 阅读全文
posted @ 2021-07-03 08:31 清语堂 阅读(589) 评论(0) 推荐(0) 编辑
摘要:程序实现ContentHandler接口并且使用 setContentHandler 方法,向 SAX 解析器注册一个实例。解析器将使用该实例报告与基本文档相关的事件,如启动和终止元素与字符数据。 此接口中的事件顺序非常重要,它本身可镜像文档中信息的顺序。例如,在 startElement 事件与相 阅读全文
posted @ 2021-07-01 09:30 清语堂 阅读(577) 评论(0) 推荐(0) 编辑
摘要:参考文档: 官网:https://docs.spring.io/spring-data/jdbc/docs/1.0.6.RELEASE/reference/html/ https://blog.csdn.net/m0_37862405/article/details/111238402?utm_me 阅读全文
posted @ 2021-06-29 16:53 清语堂 阅读(91) 评论(0) 推荐(0) 编辑
摘要:https://www.jianshu.com/p/2543c71a8e45 https://blog.csdn.net/qq_42981242/article/details/110671813 Lombok注解的使用 POJO类常用注解: @Getter/@Setter: 作用类上,生成所有成员 阅读全文
posted @ 2021-06-28 14:30 清语堂 阅读(95) 评论(0) 推荐(0) 编辑
摘要:Spring Data Jpa的使用 : https://www.jianshu.com/p/c23c82a8fcfc SpringData学习:https://blog.csdn.net/lw_power/category_6210284.html 阅读全文
posted @ 2021-06-28 10:11 清语堂 阅读(41) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示