自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(195)
  • 收藏
  • 关注

原创 nacos startup.sh

vim 打开 :set fileformat=unix

2021-04-20 13:42:21 656

原创 spring refresh

2021-04-06 17:44:50 211

原创 Language Basics variables

Language Basics

2021-02-24 19:57:32 230

原创 jdbc-con

Establishing a Connection A JDBC application connects to a target data source using: DriverManager DataSource Using the DriverManager Class Specifying Database Connection URLs MySQL Connector/J Database URL jdbc:mysql://[host][,failoverhost...][:port]/

2021-01-02 01:14:37 460

原创 jdbc-sql

Processing SQL Statements with JDBC Establishing Connection Creating Statements Statement PreparedStatement CallableStatement Executing Queries execute executeQuery executeUpdate Processing ResultSet Objects Closing Connections try-with-resources stat

2021-01-01 17:25:18 91

原创 jdbc-start

Getting Started Install the latest version of the Java SE SDK on your computer java -version Install your database management system (DBMS) if needed MySQL Install a JDBC driver from the vendor of your database mysql-connector-java-8.0.21 is pure Java a

2021-01-01 14:38:53 123

原创 install-jenkins

Installing Jenkins wget -q -O https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add - sudo sh -c 'echo deb https://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list' sudo apt-get update sudo apt-get install jen

2020-12-31 13:24:52 117

原创 Questions and Exercises

Questions and Exercises CountLetter.java /* * Copyright (c) 2009-2011 Oracle and/or its affiliates. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following co

2020-12-31 10:31:22 202

原创 Other Useful Methodes

Other Useful Methodes Determining MIME Type ContentType.java import java.nio.file.*; import java.io.*; public class ContentType { public static void main(String[] args) { Path filename = Paths.get("ContentType.class"); try {

2020-12-30 21:39:47 141

原创 第二十四章 Inserting quickly

usr_24 Inserting quickly 24.1 Making corrections # delete a word ctrl-w # delete line ctrl-u 24.2 Showing matches :set showmatch :set matchtime 24.3 Completion ctrl-p ctrl-n options complete ignorecase infercase COMPLETING SPECIFIC ITEMS C

2020-12-30 20:04:00 158

原创 Watching a Directory for changes

Watching a Directory for changes watch Service Overview Try It Out WatchDir.java /* * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, ar

2020-12-29 19:35:04 377

原创 Finding Files

Finding Files Main1.java import java.nio.file.*; public class Main1 { public static void main(String[] args) { String pattern = "glob:*{.java,class}"; PathMatcher matcher = FileSystems.getDefault().getPathMatcher(pattern);

2020-12-29 17:19:36 203

原创 idea-keymap

idea shortcut down alt-j up alt-k left alt-h left alt-l backspace alt-a delete alt-s home alt-d end alt-f page down alt-c page up alt-e

2020-12-27 14:29:29 271

原创 install-docker

Install Docker Engine from binaries Install daemon and client binaries on Linux Prereuistes A 64-bit installation Version 3.10 or higher of the Linux kernel. iptables version 1.4 or higher. git version 1.7 or higher A ps executable. XZ Utils 4.9 or higher

2020-12-27 02:13:13 313

原创 第十章 Making big changes

usr_09 Using the GUI I don’t want to use gui usr_10 Making big changes 10.1 Record and playback commands The “.” command repeats the preceding change. recording The “q{register}” command starts recording keystrokes into the register named {register}. T

2020-12-24 23:45:14 163

原创 第八章 Splitting windows

usr_08 Splitting windows 08.1 Split a window open a new window :split close the window :close closing all other windows :only 08.2 Split a window on another file opens a second window and starts editing the given file: :split two.c open a wind

2020-12-24 16:02:31 201 1

原创 第七章 Editing more than one file

usr_07 Editing more than one file 07.1 Edit another file :edit foo.txt 07.2 A list of files vim one.c two.c three.c :next :wnext WHERE AM I? :args MOVING TO OTHER ARGUMENTS :previous :wprevious :last :first

2020-12-24 06:43:55 139

原创 Walking the File Tree

Walking the File Tree The FileVisitor Interface PrintFiles.java import java.io.*; import java.nio.file.*; import java.nio.file.attribute.*; import static java.nio.file.FileVisitResult.*; public class PrintFiles extends SimpleFileVisitor<Path> {

2020-12-24 04:25:03 154

原创 Links, Symbolic or Otherwise

Links, Symbolic or Otherwise Creating a Symbolic Link CreateSymbolicLink.java import java.io.*; import java.nio.file.*; public class CreateSymbolicLink { public static void main(String[] args) { Path newLink = Paths.get("test-link");

2020-12-23 18:53:39 249

原创 第六章 Using syntax highlighting

usr_06 Using syntax highlighting 06.1 Switching it on :syntax enable

2020-12-23 16:36:19 143 2

原创 Creating and Reading Directories

Creating and Reading Directories Listing a File System’s Root Directories ListDir.java import java.nio.file.*; public class ListDir { public static void main(String[] args) { Iterable<Path> dirs = FileSystems.getDefault().getRootDirect

2020-12-23 01:37:43 198

原创 Random access file

RandomTest.java import java.io.*; import java.nio.*;

2020-12-22 19:01:58 194 1

原创 第五章 Set your settings

usr_05 Set your settings 05.1 The Vimrc file edit vimrc file: edit $MYVIMRC The “:version” command mentions the name of the “user vimrc file”. ~/.vimrc The vimrc file contain all the commands that you type after a colon. set incsearch 05.2 The example v

2020-12-22 18:01:58 250

原创 Lesson: JDBC Introduction

Trail: JDBC Database Access Lesson: JDBC Introduction JDBC manage three programming activities: Connect to a data source, like a database. Send queries and update statements to the database. Retrieve and process the results received from the database in a

2020-12-21 12:58:54 134

原创 第四章 Making small changes

usr_04 Making small changes 04.1 Operators and motions To err is human. To really foul up you need a computer. ~ ------------------> d4w To err is human. you need a computer. ~ --------> d2e To err is human.

2020-12-21 12:52:00 210

原创 linux terminal ctrl 快捷键

linux termainal 快捷键 本人不是原创 退出 exit ctrl-d tab 自动补全 命令行历史 查看上一个使用过的命令 ctrl-p 查看下一个 ctrl-n 搜索历史命令 ctrl-r history | grep {command} 中断命令进程 终止运行 ctrl-c 运行程序送到后台 ctrl-z 清屏 ctrl-l 移动光标 ctrl-a # 将光标移到所在行首 ...

2020-12-20 13:13:41 386

原创 vim 用户手册第三章 moving around

usr_03 Moving around 03.1 Word movement This is a line with example text --->-->->-----------------> w w w 3w This is a line with example text <----<--<-<---------<--- b b b 2b b This is a line w

2020-12-20 04:41:54 413 2

原创 Chapter 2 Installing and Upgrading MySQL

Chapter 2 Installing and Upgrading MySQL Installation of MySQL generally follows the steps outlined here: Determine whether MySQL runs and is supported on your platform. Choose which distribution to install Download the distribution that you want to insta

2020-12-12 18:41:06 193 1

原创 Chapter 4 MySQL Programs

Chapter 4 MySQL Programs 4.1 Overview of MySQL Programs Most programs provide a --help option. mysqld The SQL daemon (the MySQL server). mysqld_safe A server startup script. mysql.server A server startup script. Use System V-style run directories containi

2020-12-10 20:21:53 167

原创 vim用户手册第一二章

usr_01 usr_01.1 Two manuals The User manual The Reference manual JUMPING AROUND Press CTRL-] to jump to a subject under the cursor. Press CTRL-O to jump back. usr_01.2 Vim installed if you start Vim now , the ‘compatible’ option should be off. :!cp -i $V

2020-12-08 22:30:03 152

原创 Chapter 3 Tutorial

Chapter 3 Tutorial mysql --help mysql -? 3.1 Connecting to and Disconnecting from the server mysql -h host -u user -p disconnect quit \q Ctrl+D 3.2 Entering Quries select version(), current_date; illustrates several things: statement followed by a sem

2020-12-08 22:26:27 230 1

原创 nexus repo manager quickstart

nexus repo manager quickstart nexus 官网 nexus quickstart nexus 下载地址 nexus docker as a proxy server for maven and npm builds. follow each secion to: install nexus repo manager 3 run it locally proxy a basic maven 我是后端,我就不管 npm requirements jdk8 maven p

2020-12-03 13:49:29 120

原创 Using mysqldump for backups

7.4 Using mysqldump for backups mysql 官网 感觉这个脚本有点厉害 还有这个逼的博客 a dump file used in several ways enable data recovery in case of data loss data for setting up replicas data for experimentations: use without changing the original data to test potential upgra

2020-12-02 21:37:39 148

原创 show columns statement

13.7.7.5 show columns statement show [extended] [full] {columns | fields} {from | in} tb1_name [from | in} db_name] [like 'pattern'| where expr] 显示字段信息 show columns from mytable from mydb; show columns from mydb.mytable; 这两种方式相等 extended 展示

2020-12-02 20:46:59 165

原创 我自己的 psftp-cmd

PSFTP使用简单教程 官网地址 建立远程连接 open hostname open username@hostname 操作远程服务器 cd change directory ls list get [fileName] 下载文件 get -r [dir] 递归下载远程某个目录下的所有文件到当前本地目录 put [fileName] 上传文件 put -r [dir] 上传文件夹 delete [fileName/dir] 删除某个文件或者文件夹 pwd print working director

2020-11-30 16:18:00 390

原创 我自己的 tmux-cheatsheet

tmux 使用教程 基本使用 启动与退出 启动 tmux 退出 exit Ctrl+d 前缀键 Ctrl+b, 所有快捷键都要通过前缀键唤起。 Ctrl+b ? or tmux list-keys 帮助 esc 或 q 退出帮助 会话管理 新建会话 tmux new -s 新建会话并起名 分离会话 Ctrl+b d tmux detach 当前会话与窗口分离 tmux ls 查看当前所有的Tmux会话 tmux list-session or Ctrl+b s 也能列出所有会话

2020-11-30 13:07:57 203

原创 我自己的 linux-cheatsheet

小抄 sort sort lines of text files tee read from standard input and write to standard output and files systemctl Control the systemd system and service manager yum Yellowdog Updater Modified rm remove files or directories rpm rpm -qa|gr

2020-11-30 13:07:17 138

原创 我自己的 vimrc 配置

我自己 vimrc 配置 " 行号 set nu " 背景为黑色 set bg=dark " 取消搜索高亮 set nohls " 颜色方案为 desert colorscheme desert " 自动格式化选项,选项意思自己 :help fo-table set formatoptions=tcqmM " 映射回车为空白行 nmap <CR> o<Esc> " 下面5行为为方便一键缩进 gg=G , set smartindent set tabstop=4 set shiftw

2020-11-29 18:33:37 187

原创 Runtime.getRuntime().exec() 备份数据库

Java数据库备份、还原、删除操作工具类 我把别人转载过来,他没有上传代码,我把他代码复制过来,上传到码云上面 这是链接 去看原创 码云地址 git clone https://gitee.com/tao_chang_liang/databasebackup.git ...

2020-11-29 17:02:27 616

原创 死信

0. 目标 spring AMQP 死信队列 延时队列 1. Spring AMQP 1.1 简介 Sprin有很多不同的项目,其中就有对AMQP的支持 http://spring.io/projects/spring-amqp Spring-amqp是对AMQP协议的抽象实现,而spring-rabbit 是对协议的具体实现,也是目前的唯一实现。底层使用的就是RabbitMQ。 1.2 依赖...

2020-01-25 18:12:12 367

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除