Tag:Take effect

  • Spring boot asynchronous method @ Async


    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


    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


    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


    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


    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


    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


    Set fixed IP for Linux vi /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 BOOTPROTO=static IPADDR= NETMASK= GATEWAY= 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


    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


    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


    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


    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


    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 […]