Java Engineer's Way to God~
I. Foundation Chapter
1.1 JVM
1.1.1. Java memory model, Java memory management, Java stack and stack, garbage collection
http://www.jcp.org/en/jsr/detail?id=133
http://ifeve.com/jmm-faq/
1.1.2. Understanding various JVM parameters and tuning
1.1.3. Learn to use Java tools
jps,
jstack,
jmap, jconsole, jinfo, jhat, javap, …
http: ...
Posted by samrat_php on Sat, 30 Mar 2019 09:21:28 -0700
Struts 2 wildcard details
For example, there are multiple requests in index.jsp
<a href="<%=path %>/usersAction!add.action">add</a><br>
<a href="<%=path %>/usersAction!show.action">show</a><br>
<a href="<%=path %>/usersAction!update.action">update</a><br>
<a href="<%=path %> ...
Posted by HairBomb on Fri, 29 Mar 2019 17:54:29 -0700
A Simple Implementation and Usage of a POI-based Common excel Import and Export Tool Class
Preface:
Recently, PM has come to a requirement. In short, it is very troublesome to insert data into the system one by one. Let me implement a method of importing all data directly through excel at one time. There are many examples of importing and exporting excel on the internet, but most of them learn from each other. After thinking, it is ...
Posted by macje on Thu, 28 Mar 2019 08:03:28 -0700
Spring MVC Learning Notes (2) Processor Interceptor Details
The processor interceptor of Spring Web MVC is similar to the Filter filter Filter in Servlet development, which is used to preprocess and post-process the processor.
Interceptor application scenarios:
1. Logging: Logging requests for information for information monitoring, information statistics, computing PV (Page View), etc.
2. Privilege ...
Posted by subhuman on Thu, 28 Mar 2019 07:21:28 -0700
Problems of Introducing X-Content-Type-Options into HTTP Protocol Security Header
Original address: http://www.jackieathome.net/archives/369.html?Utm_source=tuicool&utm_medium=referral
Some time ago, testing MM feedback a problem, uploaded images in rich text editor can not be properly rendered. Because Jackie did not observe similar phenomena in the local environment, and just that day an important component of ...
Posted by jyhm on Wed, 27 Mar 2019 11:48:29 -0700
Using BeanUitls to Improve Object Copying Efficiency
First, create two bean s
Note: There must be set/get methods, and member variables must have the same name.
public class User1 {
String name;
String password;
String phone;
/**Omitting get/set method**/
}
public class User2 {
String name;
String password;
String phone;
/**Omitting get/set method**/
}
1.Spring's Bean Util ...
Posted by vivianp79 on Tue, 26 Mar 2019 22:12:30 -0700
Using Docker to Build Hadoop Distributed Cluster in Linux Environment
First install Docker:
$ sudo apt-get install apt-transport-https
$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
$ sudo bash -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"
$ sudo apt-get update
$ sudo apt-get install lxc-do ...
Posted by escabiz on Sun, 24 Mar 2019 18:00:29 -0700
The Use of messageConverter in Spring MVC
Solving String HttpMessageConverter Scrambling Problem
Question:
When we send string objects back to the browser through spring mvc, because the default decoding set in String HttpMessageConverter message converter is ISO-8859-1; because when the browser receives it, it is scrambled.
Solve:
Through the configuration file, the problem ca ...
Posted by Alex C on Sun, 24 Mar 2019 16:06:28 -0700
Summary of Project Experience
1. Talk about the experience of String Utils in org. apache. commons. Lang
StringUtils.isEmpty(String str)
Determine whether the string STR is empty and its length is 0, that is, STR = null & str. length = 0
StringUtils.isBlank(String str)
To determine whether the string str is a blank string and whether it is 0 in length and not ...
Posted by Shovinus on Sun, 24 Mar 2019 15:42:27 -0700
Log4j and log4j2
I believe that many programmer ape friends are familiar with log4j, log4j can be said to be accompanied by the vast majority of friends to open the programming. I don't know what log4j used to be, at least in my career, it was the era of log4j that led me to start.
Log4j is an open source project of Apache. We don't go into its origin, but ...
Posted by danjar on Fri, 22 Mar 2019 20:00:53 -0700