Performance optimization cases
1. Performance optimization case 1: adjusting heap size to improve service throughput
1.1. Modify tomcat JVM configuration
In the production environment, Tomcat does not recommend configuring variables directly in catalina.sh, but in setenv.sh under the same level directory (bin directory) as Catalina.
1.2 initial configuration
Writ ...
Posted by skattabrain on Wed, 24 Nov 2021 20:55:20 -0800
Java 23 design patterns -- policy pattern (behavior design pattern)
Strategy mode
brief introduction
The policy pattern is the packaging of the algorithm. It separates the responsibility of using the algorithm from the algorithm itself and delegates it to different objects for management. Policy patterns usually package a series of algorithms into a series of policy classes as subclasses of an abstract policy ...
Posted by nysmenu on Wed, 24 Nov 2021 19:32:33 -0800
Develop a DDD scaffold based on IDEA Plugin
Author: Xiao Fu GeBlog: https://bugstack.cnPrecipitate, share and grow, so that you and others can gain something! 😄Recently, I am interested in expanding various functions in combination with the development capability of IDEA Plugin. Based on this, different cases are used to explore the IDEA Plugin plug-in development technology. I hope thi ...
Posted by Labbat on Wed, 24 Nov 2021 19:29:08 -0800
Java final assignment - the king's glory Locke Kingdom version of the game
👺 Reading guide
Recently, Feixue is brushing Java. After all, his studies are coming. He has to consider the road behind. It doesn't make sense to be a back-end person who doesn't understand the basics of Java and learn several mainstream frameworks. Then I tried to write the king glory Locke Kingdom simulation game that I, a novice Jav ...
Posted by levi_501_dehaan on Wed, 24 Nov 2021 17:58:06 -0800
What is the handler in spring MVC
    1. What is a handler     2. How to get the handler (if you don't pay attention to the analysis process, you can skip and look at the summary directly     3. Simple summary of handle
1. What is a handler     Students who have learned about the spigmvc process must have heard of the handler. Baidu translates it as ...
Posted by mad3533 on Wed, 24 Nov 2021 16:49:14 -0800
Develop a DDD scaffold based on IDEA Plugin
Author: Xiao Fu Ge Blog: https://bugstack.cn
Precipitate, share and grow, so that you and others can gain something! 😄
Recently, I am interested in expanding various functions in combination with the development capability of IDEA Plugin. Based on this, different cases are used to explore the IDEA Plugin plug-in development technology ...
Posted by Arkane on Wed, 24 Nov 2021 16:08:34 -0800
About process control
Process control
Create process
fork
//Create child process
pid_t fork(void);
//Success: the parent process returns the PID of the child process, and the child process returns 0; Failure: Return - 1, set errno value
The parent-child process who preempts the CPU time slice will execute first
Global variables cannot be shared between p ...
Posted by kapishi on Wed, 24 Nov 2021 11:54:04 -0800
Java dynamic proxy (JDK dynamic proxy and cglib)
JDK dynamic agent
The dynamic proxy of JDK only allows proxy interfaces
Important classes and interfaces Proxy and InvocationHandler The proxy.newproxyinstance (classloader, loader, class <? > [] interfaces, invocationhandler h) method creates a proxy object for the target object After obtaining the proxy object of the target object, th ...
Posted by ccbayer on Wed, 24 Nov 2021 11:01:48 -0800
Detailed explanation of the past and present life of Spring Boot and its relationship with Spring Cloud
To understand the development background of Spring Boot, we have to start with the release of Spring Framework version 1.0 in 2004. However, we all use the spring framework from the beginning of learning Java, so we don't expand too much.With more and more enterprises and individuals using the Spring Framework for development, Spring has slowly ...
Posted by POGRAN on Wed, 24 Nov 2021 10:25:12 -0800
python higher order: magic function
Summary: Dynamic Language: Python is a dynamic language, with the duck model at the bottom: when you see a bird walking like a duck, swimming like a duck, and calling like a duck, it can be called a duck.
In the duck type, the focus is not on the type of object itself, but on how it is used. In programming, duck typing is a style of dynamic ty ...
Posted by OopyBoo on Wed, 24 Nov 2021 09:28:29 -0800