Tag:file

  • Beginner’s post of trust language

    Time:2021-8-2

    introduction Quickly configure the rust development environment and write a small application! Install rust You can try rust online on rust playground without installing anything on your computer. Without installation, try rust directly Rustup: rust installer and version management tool The main way to install rust is through rustup, which is both a rust installer […]

  • This is probably the most complete mouse and keyboard monitoring you’ve ever seen

    Time:2021-8-2

    import time This work adoptsCC agreement, reprint must indicate the author and the link to this article

  • Spring boot is combined with mybatis and druid to realize multiple data sources, which can be switched automatically

    Time:2021-8-2

    Original address: https://blog.lanweihong.com/p… Github: spring-boot-mybatis-multiple-data-source Add dependent packages editpom.xmlFile, add related dependencies: <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.4.8</version> <relativePath/> </parent> <properties> <mysql.driver.version>8.0.16</mysql.driver.version> <mybatis.spring.boot.version>1.3.2</mybatis.spring.boot.version> <druid.version>1.1.10</druid.version> <tk.mybatis.version>2.1.5</tk.mybatis.version> <lombok.version>1.16.18</lombok.version> </properties> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>${lombok.version}</version> </dependency> <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> <version>${mybatis.spring.boot.version}</version> </dependency> <!– mysql driver –> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>${mysql.driver.version}</version> </dependency> <dependency> <groupId>com.alibaba</groupId> <artifactId>druid-spring-boot-starter</artifactId> <version>${druid.version}</version> <exclusions> <exclusion> […]

  • Learn a Linux command every day (60): SCP

    Time:2021-8-2

    Yesterday’s recommendation:Learn a Linux command every day (59): SSH Command introduction SCP secure copy is used to copy files between different hosts. SCP command is often used to transfer files between two different hosts under Linux system. Its function is the same asCP commandSimilar, but the difference is that the CP command can only be […]

  • Introduction to mybatis 100%

    Time:2021-8-2

    Today, I return to mybatis and sum up some better ways to get started. Let’s take you through the simplest way.Here we first introduce the relationship picture of class package 1. Build aordinaryMaven project Once built, add a dependency to POM. XML jar org.mybatis mybatis 3.5.2 mysql mysql-connector-java 8.0.15 log4j log4j 1.2.17 junit junit 4.12 […]

  • Front end performance optimization: compression webpack plugin and nginx configuration gzip

    Time:2021-8-2

    Purpose: Use GZ resources to reduce the size of static resource packages and improve front-end loading performance and speed. Scheme: There are many front-end performance optimization schemes. This paper attempts the compression scheme – the front-end package uses the compression webpack plugin plug-in to compress static resources, and the server turns on the gzip attribute […]

  • Bash: test commands in if, until and while

    Time:2021-8-2

    exit status The status value returned when exiting after the execution of the previous command. 0Indicates success;Not 0Indicates a failure. You can print and view the last status value on the command line $ echo $? If, until and while that depend on exit status Syntax of until: until test-commands; do consequent-commands; done Syntax of […]

  • Maven POM configuration translation

    Time:2021-8-2

    POM Original:https://maven.apache.org/guid… Build project In the process of developing Java, you may use many dependent packages, from third parties or Maven warehouses built by yourself. Version compatibility management between dependent packages is a thorny problem in development. Maven records all dependency related information in the POM. XML file, and then automatically downloads and builds these […]

  • Install JDK for Ubuntu 16.04

    Time:2021-8-2

    Download and install JDK wget http://download.oracle.com/otn-pub/java/jdk/8u111-b14/jdk-8u111-linux-x64.tar.gz sudo tar -zxvf jdk-8u111-linux-x64.tar.gz sudo cp -R jdk1.8.0_111 /opt/ Create soft link sudo ln -s /opt/jdk1.8.0_111/bin/java /bin/java Configure system environment variables sudo vi /etc/profile export JAVA_HOME=/opt/jdk1.8.0_111export JRE_HOME=${JAVA_HOME}/jreexport CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/libexport PATH={JAVA_HOME}/bin:$PATHNote: of whichJAVA_HOMEDesignated asJDKInstallation directory, in addition,LinuxAre separated by colons, different fromWindowsUse semicolons to separate the.   Save and exit after […]

  • Linux uses the date, Cal commands to view dates and calendars

    Time:2021-8-2

    #View system date and time, default format date Wednesday, May 12, 2021 16:56:20 CST #View system date and time, common format date +’%F %T’ 2020-03-23 18:15:00 #View system date, week, time date +%c Tuesday, March 23, 2020 18:15:40 #View system date in mm / DD / yy format date +%D 03/23/20 #View system date in […]

  • In depth understanding of webpack module loading principle

    Time:2021-8-2

    Webpack is a module packer. In its view, every file is a module. Whether you use the commonjs specification or ES6 module specification for development, the packaged files uniformly use the module specification customized by webpack to manage and load modules. This article will start with a simple example to explain the principle of webpack […]

  • Ora-21561: oid generation failed

    Time:2021-8-2

    When connecting Oracle with Navicat on the Mac, you always prompt: ora-21561: oid generation failedSolving processEnter: ~ hostname on the terminallocalhostView the / etc / hosts file: ~ cat / etc / hosts127.0.0.1 localhostJust keep the hostname consistent with the name corresponding to 127.0.0.1 in the hosts file! ========================================Modify the hostname commandsudo scutil –set HostName […]