2021年12月24日

springboot thymeleaf常用标签

摘要: xmlns:th="http://www.w3.org/1999/xhtml" <tr th:each="user,i : ${list}" th:class="${i.odd}?'odd'"> <td th:text="${user.username}"></td> <td th:if="${us 阅读全文

posted @ 2021-12-24 10:41 java-go 阅读(50) 评论(0) 推荐(0)

2021年12月16日

数据库基础操作

摘要: 数据库操作:1. 新增表 create table inpcase.progress_note_abc( rec_sn varchar2(36), ipid varchar2(36), patient_name varchar2(100), tpl_code varchar2(100), tpl_n 阅读全文

posted @ 2021-12-16 17:41 java-go 阅读(47) 评论(0) 推荐(0)

获取字符串中文首字母

摘要: jar包:pinyin4j-2.5.1.jar 代码: public static String getPinyinHeaderString(String str) { //定义一个空字符串去接收 String convert = ""; for (int i = 0; i < str.length 阅读全文

posted @ 2021-12-16 15:31 java-go 阅读(1107) 评论(0) 推荐(0)

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)

导航