Tomcat single machine multi instance
What is Tomcat?
Tomcat is a core project of the Jakarta project of the Apache Software Foundation, which is jointly developed by Apache, Sun and other companies and individuals. With Sun's participation and support, the latest Servlet and JSP specifications can always be reflected in Tomcat. Tomcat 5 ...
Added by Seol on Sun, 15 Mar 2020 14:08:40 +0200
[spring MVC] 2. A simple introduction case
Article directory
Requirements for entry procedures
1. Create webapp project and introduce jar package: pom.xml
2. Configure the core controller (configure dispatcher servlet)
3. Write the configuration file of springmvc.xml
4. Write index.jsp and HelloController controller classes
5. Create the page ...
Added by adwfun on Mon, 02 Mar 2020 08:22:03 +0200
Remember to deploy and publish the Spring Boot project once, and configure SSL to support both HTTP and HTTPS
Because the company bought a new server, it needs to deploy the project to the new server and support HTTPS. After online search, it is finally completed, and now it is recorded.
Configure HTTP
1. Generate certificate
Use the keytool.exe provided with the jdk to generate the certificate (because ...
Added by dr.maju on Thu, 27 Feb 2020 10:41:31 +0200
Traditional jsp+servlet upload file to server and save image address to database
Recently, the traditional Servlet+jsp method is used to realize the function of uploading the user's head image. It is found that it is much more difficult than using the spring boot framework to upload images. In the middle, there are also various problems. Please record them.
Upload your head
Firs ...
Added by GetPutDelete on Fri, 21 Feb 2020 17:13:09 +0200
Common Java database operations
1. JDBC Driver
JDBC-driven loading:
1. Loading through containers:
For Java applications with containers, the corresponding driver jar packages can be placed directly in the lib directory of the container, such as web applications using Tomcat as a container, and the driver can be copied to the lib subdirectory of tomcat.
2. Application Runtim ...
Added by Exoon on Mon, 17 Feb 2020 01:22:41 +0200
Analysis of the principle of Jsp in Spring Boot
The essence of jsp
The essence of jsp is servlet. You have deployed Java Web project with tomcat, and you know how to generate the corresponding servlet of jsp page in the work directory.
The essence of servlet is to encapsulate socket
jsp page
<%--
Created by IntelliJ IDEA.
User: wy
Date: ...
Added by bastien on Tue, 11 Feb 2020 18:28:24 +0200
Search engine Solr from entry to actual combat
1.Solr installation and configuration
1.1 introduction to Solr
Most search engine applications must have some kind of search function. The problem is that the search function is often a huge resource consumption and they drag down the performance of your application due to heavy database loading.
Th ...
Added by banjax on Sun, 02 Feb 2020 18:06:59 +0200
Linux system architecture: dynamic and static separation between Nginx and Tomcat
1, Overview of dynamic and static separation
Static and dynamic separation is to separate the static resources (HTML, JavaScript, CSS,img and other files) of the website from the background application, improve the speed of users' access to static code, and reduce the access to the background applic ...
Added by truCido on Sun, 02 Feb 2020 07:55:17 +0200
Zabbix Monitoring PHP-FPM, Tomcat, Redis Application Practice Cases
1. Zabbix Monitoring PHP-FPM Application
Nginx+PHP-FPM is the most popular LMP architecture at present. Under the system based on PHP development, monitoring the performance of these systems mainly focuses on the running status of PHP-FPM. So what is PHP-FPM?PHP-FPM is a PHP FastCGI manager, which provides a better way to manage PHP processes. ...
Added by trecool999 on Sat, 01 Feb 2020 19:34:32 +0200
IDEA sums up the code of sharpening the knife
If you want to be good at your work, you must first make use of your tools. At present, countless Java programmers have replaced Eclipse in the stone age with InteliJ IDEA, a modern intelligent development tool. It's a great time to write code (joke, each has its own advantages, depending on personal habits)
But every time I see other people us ...
Added by glansing on Tue, 21 Jan 2020 06:20:21 +0200