The golang cli command line framework uses
brief introductionCli provides simple and fast development of command line functions.Setting parameters and configurations by command is a basic requirement in applications.Cli can help you quickly build command line functionality.
install
go get github.com/urfave/cli
Simple example
package main
import (
"fmt"
"os"
"github.com/ur ...
Posted by JNettles on Thu, 07 Nov 2019 06:19:48 -0800
Mysql Series II: CentOS 7.4 installation of mysql5.7.28 source code
This article is the blog Mysql Series II: CentOS 7.4 install Mysql 5.7.28 source code
There are many ways to install mysql. Take Centos7 as an example, you can download the compiled binary code on the official website for installation, and you can download the rpm package on the official website for installation. In this paper, we introduce th ...
Posted by damnedbee on Thu, 07 Nov 2019 02:15:38 -0800
java version spring cloud+spring boot+redis multi tenant social e-commerce platform spring boot integrates mybatis
Introducing dependency
Spring cloud b2b2c e-commerce social platform source code Please add Penguin: 103874626. The dependency of introducing mybatis spring boot starter in pom file:
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter<artifactId>
<v ...
Posted by Wildbug on Wed, 06 Nov 2019 10:55:17 -0800
yml configuration file in SpringBoot
1. Writing format of yml configuration file
The format is a property name separated by '.' in a normal configuration file, which is': 'and newline.
Example:
//Common format
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
//yml format
spring:
datasource:
driver-class-name: com.mysql.jdbc.Driver
Note:
1. The annotation format i ...
Posted by incarnate on Wed, 06 Nov 2019 06:08:44 -0800
jumpserver one-stop deployment and installation
Preface
We are familiar with the bastion machine (springboard machine). In order to ensure the security of the server, we add a bastion machine. All ssh connections are completed through the bastion machine. The bastion machine also needs to have identity authentication, authorization, access control, audit and other functions.
Jumpserver is t ...
Posted by beta0x64 on Wed, 06 Nov 2019 01:19:12 -0800
Mysql from entry to forgetting
Made By Herolh
Catalog
[TOC]
1. What is MySQL
Server side
Client
Mysql database
MySQL is the most popular relational database management system, and MySQL is one of the best RDBMS(Relational Database Management System) application software in WEB application.
It is developed by MySQL AB company in Sweden and currently belongs to Oracle co ...
Posted by phpPete on Tue, 05 Nov 2019 20:44:00 -0800
Springboot + MySQL + CRUD (add, delete, modify and query)
talk is cheap,show you my codeSource code: springboot-mysql-crud
1. Create a springboot project
2. Import related dependencies
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://mave ...
Posted by Chris 96 WS6 on Tue, 05 Nov 2019 08:01:46 -0800
Spring boot integrates mybatis and precautions
Main steps
Add dependency on mybatis
Configure data source information in the configuration file
Write the mapping file of the pojo mapper interface maper
Manually configure package scanning of mybatis
Add @ MapperScan to the main startup class
1: import dependency
<dependency>
<groupId>org.mybatis.spring.boot</groupId> ...
Posted by royalsolo on Tue, 05 Nov 2019 06:58:16 -0800
Using swoole+websocket and redis to realize web one-to-one chat
Redis implements that each service connected to websocket is bound to a unique user. Save to redis through user account = websocket fd.
mysql implements the offline message pool. If a user is not online, messages sent to him by other users are temporarily stored in mysql. When the user is online, it is taken out from the offline message pool an ...
Posted by Eal on Tue, 05 Nov 2019 06:13:55 -0800
Install mysql on centos
This article still uses xftp to upload gz files, and then operates on xShell. If you do not install these two files, please refer to the previous blog.
1. Upload the downloaded file to the corresponding location with xftp.
2. Unzip the file: tar-zvxf-mysql-5.7.28-linux-glibc2.12-x86_.tar.gz
3. Create mysql folder under / usr/local folder
m ...
Posted by chelsea7 on Mon, 04 Nov 2019 23:46:11 -0800