Brainless operation: Eclipse + Maven + jFinal + MariaDB environment construction

I. Development Environment 1. windows 7 Enterprise Edition 2,Eclipse IDE for Enterprise Java Developers  Version: 2019-03 (4.11.0) 3,JDK 1.8 4,Maven 3.5.2 5,MariaDB 6,Tomcat 8.5 II. Basic Configuration 1. The settings of Maven in Eclipse are as follows 2. The database uses the default test library to create table categories 1 CREA ...

Posted by gat on Sat, 11 May 2019 13:30:00 +0200

Simulated Springboot 2: built-in tomcat

Since tomcat is built into a project and can successfully start a project, you need to know what tomcat has done, so you need to understand first. How a common web project is started and run by our locally configured tomcat (1) Tell tomcat which projects to run first (that is, configuring tomcat before starting a project with eclipse, idea, or ...

Posted by abduljan on Fri, 10 May 2019 17:39:18 +0200

Struts 2 File Download

1. File download path problem, when the project runs MyEclipse will load the project under Tomcat's webapps directory. So, about the path problem (we must set up relative road strength)   2. Relative paths are needed to download to the local server. It's better to use absolute path to upload to client 3. There must be a lot ...

Posted by Whitestripes9805 on Mon, 06 May 2019 06:05:02 +0200

nginx solves session consistency

session viscosity Each request is allocated according to the hash result of accessing ip, so that each visitor can access a back-end server regularly, which can solve the session problem.   upstream backserver { ip_hash; server 192.168.0.14:88; server 192.168.0.15:80; } However, there is a single risk. If I have logged in at ...

Posted by ckjian on Sun, 05 May 2019 09:00:05 +0200