Innodb of Innodb engine_ lock_ wait_ Timeout parameter description and validation

Innodb of Innodb engine_ lock_ wait_ Timeout parameter description explain First, the Innodb engine will lock the corresponding row when executing the update statement and will not release it until the transaction is committed or rolled back. In the process of holding a row lock, if other transactions b also want to modify the data of the loc ...

Posted by justinh on Fri, 03 Dec 2021 22:34:34 -0800

Spring source code -- Bean instantiation

Last BeanWrapper We introduced the origin of BeanWrapper. Now let's continue to see how Spring constructs a Bean. The code is not long and not particularly complex /** * Use the appropriate instantiation strategy to create beans: factorymethod, automatic injection of constructor, or simple parameterless constructor */ protected BeanWrap ...

Posted by dianaqt on Fri, 03 Dec 2021 22:01:04 -0800

Introduction to Java - definition, call and overload of methods

1. Format of definition method Modifier return value type method name(parameter list){ //Code omission return result; } Modifier: public static fixed writing methodReturn value type: the data type representing the result of the method operation. After the method is executed, the result is returned to the callerParameter list: unknown da ...

Posted by Chris1981 on Fri, 03 Dec 2021 21:59:28 -0800

SpringCloud: Build a complete micro-service architecture system based on the Spring Cloud netflix family bucket

Overall architecture Service Planning Registration Services Example Host port Explain Access Address EUREKASERVER EurekaServer1 ek1.com 9001 eureka Service 1 http://ek1.com:9001 EUREKASERVER EurekaServer2 ek2.com 9002 eureka Service 2 http://ek2.com:9002 SCSERVER sc-server1 scServer1 8001 Remote Service 1 Action: http://scserver1:80 ...

Posted by Josien on Fri, 03 Dec 2021 17:01:56 -0800

Teach MyBatis to connect to Mysql to complete addition, deletion, modification and query (CRUD)

MyBatis connects to Mysql to complete addition, deletion, modification and query 1. Step 1: create a SpringBoot project Select related dependencies Note: if you forget to import the related dependencies: you can import them manually. Search the name of the related jar in the link below maven warehouse Step 2: create database tables accordin ...

Posted by Yari on Fri, 03 Dec 2021 16:58:24 -0800

java.lang.NumberFormatException: null solution

I wonder if you, like me, often add a space in the code or write a wrong letter in your name. After reporting the error, you can't find out what's wrong. Ask your colleagues to help solve the problem. After finding the problem, you really want to slap yourself. You always make such a low-level mistake and are speechless. Next, let's get to the ...

Posted by sansoo on Fri, 03 Dec 2021 15:36:36 -0800

Interceptors and filters

Interceptors and filters in spring boot Interceptor Execution process of interceptor Directly on the code, the code has comments package com.hjx.config; import org.springframework.stereotype.Component; import org.springframework.web.servlet.HandlerInterceptor; import org.springframework.web.servlet.ModelAndView; import javax.servlet.h ...

Posted by Nirvana on Fri, 03 Dec 2021 15:20:28 -0800

[java details] comparison of for loop, for each (enhanced for loop), forEach and Iterator iterators

[java details] comparison of for loop, for each (enhanced for loop), forEach and Iterator iterators 1, Background and conclusion The background is that in the process of product development, there is an interface development that needs to intercept font json files. Because it involves multi-layer json content traversal, it can't get through t ...

Posted by hanhao on Fri, 03 Dec 2021 14:16:39 -0800

asm implements annotation printing log

preface In Android development, sometimes debugging problems add a lot of logs to the method, which is very troublesome. Therefore, in combination with asm, the log is automatically inserted into the method by annotation, so as to facilitate debugging during development. Of course, the log inserted through asm should contain the method paramet ...

Posted by cobnut on Fri, 03 Dec 2021 12:09:28 -0800

The simplest IO understanding

IO stream First, we should understand external memory, memory and cache io is divided into input and output: Personal understanding: Output stream: output the file from the idea Input stream: read the file to the idea Input and output can be divided into: Byte stream: the smallest data unit in a data stream is bytes Output: OutputSt ...

Posted by BinaryDragon on Fri, 03 Dec 2021 11:47:35 -0800