- 博客(8)
- 资源 (2)
- 收藏
- 关注
原创 IntelliJ IDEA 常用设置
文件名 TAB 多行显示 Settings -> Editor -> General -> Editor Tabs -> 取消勾选 Show tabs in one row 如下图所示:
2021-08-02 14:52:19
131
原创 我的IntelliJ IDEA中安装的常用插件
Translation 翻译插件。 Rainbow Brackets 区分括号层级。 Free MyBatis plugin 使用MyBatis时,方便快速定位方法。
2020-12-14 20:00:47
149
原创 UNION连接的SQL中包含LIMIT
如果UNION连接的SQL中有LIMIT,那么需要使用括号,否则就会报错。 (SELECT {列} FROM {表名} LIMIT xxx) UNION ALL (SELECT {列} FROM {表名} LIMIT xxx);
2020-12-10 14:40:37
977
原创 Linux(CentOS 8)自用Java环境的简单配置
目录安装 JDK安装 MySQL 安装 JDK 下载地址:https://www.oracle.com/cn/java/technologies/javase-jdk15-downloads.html。 选择版本: 使用Xftp上传到服务器,解压到指定位置: tar -zxvf jdk-15.0.1_linux-x64_bin.tar.gz -C {指定路径} 配置环境变量: # 修改/etc/profile文件 vim /etc/profile # 加入以下环境变量 export J
2020-12-01 09:33:48
158
2
原创 CentOS 8 安装包方式安装 MySQL 8
1 下载安装包 MySQL下载地址:https://dev.mysql.com/downloads/mysql/。 选择版本如下图: 2 解压 tar -xvf mysql-8.0.22-1.el8.x86_64.rpm-bundle.tar -C /home/ 3 依次安装rpm包 yum install mysql-community-common-8.0.22-1.el8.x86_64.rpm yum install mysql-community-client-plugins-8.0.22-1.
2020-11-27 11:30:19
390
原创 利用InvocationHandler实现动态代理
前言:代理模式就是提供了一个实际对象的代理,以便更好的控制实际对象。而动态代理则是更进一步,利用反射机制更方便的的实现代理模式这种思想。 场景:如果想要买一个CPU,那么就要知道英特尔和A厂CPU的价格。那么可以这么实现: /** * CPU 接口类 */ public interface CPU { void name(); void price(); } /** * CPU - Intel */ public class IntelI7 implements CPU {
2020-11-18 14:29:54
197
原创 使用JDBC方式连接MySQL数据库
假如存在一张表,表结构是这样婶儿的: id code name 1001 code01 name01 1002 code02 name02 使用JDBC方式简单的查询下这张表,代码如下: public static void main(String[] args) { Connection connection = null; PreparedStatement ps = null; try { Class.fo
2020-11-12 14:21:55
156
原创 多层嵌套循环跳出到指定层级
示例代码: public static void main(String[] args) { anchor: // 声明锚点 for (int i = 1; i < 4; i++) { System.out.println("1st i = " + i); for (int j = 1; j < 10; j++) { System.out.println("2nd j = " + j)
2020-11-11 09:49:03
558
Xshell&Xftp 7.zip
2020-11-17
cmder_1.3.16.zip
2020-11-17
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人