2021年11月19日

mybatis_01 初运行

摘要: maven坐标 <dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis</artifactId> <version>3.5.2</version> </dependency> <dependency> <groupId>mysq 阅读全文

posted @ 2021-11-19 17:18 java-go 阅读(22) 评论(0) 推荐(0)

maven静态资源过滤

摘要: <resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.properties</include> <include>**/*.xml</include> </includes> <fil 阅读全文

posted @ 2021-11-19 16:56 java-go 阅读(26) 评论(0) 推荐(0)

jdbc封装工具类(连接池)

摘要: c3p0配置文件: c3p0-config.xml <c3p0-config> <!-- 使用默认的配置读取连接池对象 --> <default-config> <!-- 连接参数 --> <property name="driverClass">com.mysql.jdbc.Driver</pro 阅读全文

posted @ 2021-11-19 15:33 java-go 阅读(114) 评论(0) 推荐(0)

jdbc封装工具类(无连接池)

摘要: package com.huang; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import jav 阅读全文

posted @ 2021-11-19 15:17 java-go 阅读(25) 评论(0) 推荐(0)

jdbc连接数据库

摘要: jdbc六大步骤: // 加载驱动 Class.forName("com.mysql.jdbc.Driver"); // 获取链接 Connection connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/tes 阅读全文

posted @ 2021-11-19 14:52 java-go 阅读(17) 评论(0) 推荐(0)

File文件类

摘要: 创建文件 File file = new File("D:\\file_test\\c.txt"); if(!file.exists()) { File parentFile = file.getParentFile(); if(!parentFile.exists()) { boolean mkd 阅读全文

posted @ 2021-11-19 14:01 java-go 阅读(29) 评论(0) 推荐(0)

xml相关操作

摘要: xml :可扩展标记语言,XML 被设计用来传输和存储数据。 javascript解析xml: <script> if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLH 阅读全文

posted @ 2021-11-19 13:22 java-go 阅读(18) 评论(0) 推荐(0)

导航