Tag:Take effect

  • Spring boot asynchronous method @ Async

    Time:2021-12-24

    preface My requirement is to create a new thread to perform some operations, because if the same thread is used, the resources will be occupied all the time, affecting the response efficiency. Asynchronous concept My understanding:Asynchronous means that multiple vehicles are driving on multiple roads, and synchronous means that multiple vehicles are driving on one […]

  • [source code analysis] the principle of springboot automatic configuration and how mybatis is automatically configured

    Time:2021-12-23

    Spring boot auto configuration principle 1. Set up springboot The parent project that all springboot needs to introduce: version control <parent> <artifactId>spring-boot-starter-parent</artifactId> <groupId>org.springframework.boot</groupId> <version>2.1.11.RELEASE</version> </parent> Its parent project is <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-dependencies</artifactId> <version>2.1.11.RELEASE</version> This project is the version control center of springboot!) Then we need to introduce the initiator of the module we need to use. […]

  • You often need to confirm some information about MySQL during development

    Time:2021-12-19

    View MySQL version SELECT VERSION(); View general_ Log log related information See if it is open and the path SHOW VARIABLES LIKE ‘general%’; open set GLOBAL general_log=’ON’; time zone View current time zone show variables like “%time_zone%”; Set to UTC time zone # vim /etc/my. CNF ## in the [mysqld] field, add default-time_zone = ‘+8:00’ […]

  • Source code analysis of springboot — implementation principle of autoconfigure

    Time:2021-12-9

    Source code analysis is based on spring boot 2.1 This paper analyzes the implementation principle of springboot autoconfigure function by reading the source code.(source code analysis articles are recommended to be read on the PC) Use the @ enableautoconfiguration annotation in springboot to start the autoconfigure function @Import(AutoConfigurationImportSelector.class) public @interface EnableAutoConfiguration { … } What […]

  • Phoenix

    Time:2021-12-7

    Phoenix HBase is suitable for storing a large number of NoSQL data with low requirements for relational operation. Limited by the design of HBase, it can not directly use the native API to perform the operations such as condition judgment and aggregation commonly used in relational database. HBase is excellent. Some teams seek to provide […]

  • Installing redis 5 in CentOS 7

    Time:2021-12-5

    Unzip the installation package # tar zxvf redis-5.0.9.tar.gz Rename and move folders # mv redis-5.0.9 redis # mv redis /usr/local/src/redis Install redis # cd /usr/local/src/redis/ # make PREFIX=/usr/local/redis install If malloc reports an error, use make malloc = libc prefix = / usr / local / redis install copyredis.confTo the installation directory # cp redis.conf […]

  • django+centos+cx_ Oracle development environment setup

    Time:2021-12-2

    Set fixed IP for Linux vi /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 BOOTPROTO=static IPADDR=192.168.0.116 NETMASK=255.255.0.0 GATEWAY=192.168.0.1 ONBOOT=yes TYPE=Ethernet Restart the configuration file for it to take effect /etc/init.d/network restart PIP installation tar -xzvf pip-1.5.4.tar.gz pip install xxx -i http://pypi.douban.com/simple Django installation slightly Oracle client installation ./centos_ cx_ The oracle.sh file is as follows: #!/bin/bash # INSTALL ORACLE INSTANT CLIENT […]

  • Using annotation development

    Time:2021-12-1

    Series articles: Basic concepts of spring Getting started with spring Automatic assembly of beans Using annotation development proxy pattern AOP Spring integrates mybatis After spring 4, if you want to develop with annotations, you must ensure that the AOP package is imported To use annotations, you need to import context constraints and add annotation support […]

  • Linux basic firewall settings and open port commands

    Time:2021-11-30

    Turn off firewall CentOS 7、RedHat 7Firewall on and off in previous Linux distributions(iptables ): Immediate effect, restartinvalid #Open service iptables start #Shut down service iptables stop restarttake effect #Open chkconfig iptables on #Shut down chkconfig iptables off CentOS 7、RedHat 7Firewall on and off for subsequent Linux distributions(firewall ): systemctl stop firewalld.service Open port CentOS 7、RedHat […]

  • Nginx configuration 404 custom page

    Time:2021-11-28

    1. Modify nginx.conf http Nginx.conf file HTTP area addfastcgi_intercept_errors on; http { ……. fastcgi_intercept_errors on; 2. Configure conf server to configureerror_page 404 server { listen 80; server_name www.zhangguoye.com; index index.html index.htm; root /home/wwwroot; error_page 404 /404.html; location = /404.html { root /home/wwwroot/; # Add custom 404.html in this directory } 3. Restart nginx userestartperhapsreloadRestart nginx […]

  • Vs terminal command does not take effect

    Time:2021-11-14

    1. The golang environment variable in vs does not take effect After the newly added golang gopath variable, the vs CMD golang environment variable does not take effect. The environment variable takes effect on the CMD command line 2. Solutions Restart vs to make gopath environment variable take effect

  • The secret of spring boot auto configuration

    Time:2021-10-31

    Foreword With the increasing popularity of the Internet, springboot has become a technology we have to master both at work and in interviews. Speaking of springboot, I think the most important function is automatic configuration. Why do you say so? Friends who have participated in previous spring complex projects must have had such experience. Each […]