current location:Home > Technical Articles > Backend Development
- Direction:
- All web3.0 Backend Development Web Front-end Database Operation and Maintenance Development Tools PHP Framework Daily Programming WeChat Applet Common Problem Other Tech CMS Tutorial Java System Tutorial Computer Tutorials Hardware Tutorial Mobile Tutorial Software Tutorial Mobile Game Tutorial
- Classify:
-
- How to use Dockerfile to create an image of the java running environment
- The environment currently used is: centos7.5docker-ce18.06.1-ce1. First use the basic image of centos7.5.1804 to install some environments required for operation and create the corresponding file directory in the /app directory [root@node2/app /]#mkdirdockerfile/{web/{nginx,tomcat,jdk,apache},system/{centos,ubuntu,redhat}}-pv[root@node2/app]#cddockerfile/system/centos/[root@node2/app /do
- javaTutorial . tomcat 2435 2023-05-05 13:49:13
-
- How to specify JDK path in JAVA
- By default, Tomcat will use the system's environment variables to find JAVA_HOME and JRE_HOME. But sometimes we need different versions of JDK to coexist. JAVA_HOME and JRE_HOME can be set at the front of ${TOMCAT_HOME}/bin/catalina.bat. For example: 1
- javaTutorial . tomcat 1587 2023-05-05 11:19:06
-
- How to use Java's finalize() method
- Alternative usage of finalize() in Java. Anyone who has done JAVA programming knows that there is a garbage collector mechanism in JAVA. When it runs (usually automatically runs when the system memory reaches a certain limit), it will recycle no longer The memory occupied by the object used, so in JAVA programs, we usually only consider creating objects and never care about the clearing of objects. Finalize() is a special method provided by JAVA for classes. The working process of the garbage collector is roughly like this: Once the garbage collector is ready to release the storage space occupied by useless objects, it first calls the finalize() method of those objects, and then actually reclaims the object's memory. By using finalize(), you can
- javaTutorial . tomcat 1038 2023-04-30 14:43:06
-
- How to configure java environment and install tomcat in Centos
- 1. Install the java environment: Visit the orcal official website to download the jdkrpm package: After the download is complete, execute: rpm-ivhjdk-8u161-linux-x64.rpm to install. By default, it will be installed in the /usr/java directory. After the installation is completed, modify /etc/ profile file, add the java environment variable: exportjava_home=/usr/java/jdk1.8.0_161/exportclasspath=.:$java_home/jre/lib/rt.jar:$java_home/lib/dt.jar:$java_home/lib/tools
- javaTutorial . tomcat 1548 2023-04-30 11:07:06
-
- What are the common WEB servers in Java?
- A web server is a container that runs and publishes web applications. Only when the developed web project is placed in the container can all users on the network access it through a browser. The servers used to develop JavaWeb applications are mainly Web servers compatible with JSP/Servlet. The more commonly used ones are Tomcat, Resin, JBoss, WebSphere and WebLogic, etc., which will be introduced separately below. Tomcat server The most popular Tomcat server at present is a sub-project of the Apache-Jarkarta open source project. It is a small, lightweight Web server that supports JSP and Servlet technology, and is also suitable for beginners.
- javaTutorial . tomcat 2497 2023-04-30 11:01:17
-
- How to install tomcat and deploy Java web projects on CentOS
- 1. Preparation a. Download the tomcatlinux package, address: , the version we downloaded is 8.0, the download method is as shown in the figure: b. Because the installation of tomcat depends on javajdk, we need to determine whether jdkb.1 is installed under the linux system. (xshell) Connect to the Linux system and enter the command in b.2 below: java-version. If the jdk version number is displayed, it proves that it has been installed. If it is not displayed, it proves that it is not installed. If it is not installed, please refer to the following address to install it: / /www.jb51.net/os/redhat/73016.html, as shown in the figure: c. The software and systems required for operation are as follows
- javaTutorial . tomcat 1911 2023-04-29 23:01:05
-
- How to add java startup command to tomcat service
- Existing code: 1. Main function: maingame.java (the function that starts the game.) 2. Frame running class: gameenterframe.java (responsible for loop execution. I set it to run every 2 seconds to write data to the database. .) Regarding self-starting, there are two key points: 1. You need to modify a configuration file named web.xml in web-inf under webroot. If you don't have the same path as my picture, unfortunately, it means you created the wrong project type. Remember to create a new webserverproject. Simply add three lines of code to this file to tell tomcat that I want to run a self-starting class. I named it auto.
- javaTutorial . tomcat 1353 2023-04-28 12:34:06
-
- How to use both SSL and non-SSL connections in Java Mail?
- Recently, I encountered a problem while doing javamailssl: using JavaMail to receive emails cannot be successful after the system has been running for a certain period of time. The error message is as follows: javax.mail.MessagingException:Connectfailed;nestedexceptionis:javax.net.ssl.SSLHandshakeException:sun.security .validator.ValidatorException:PKIXpathbuildingfailed:sun.security.provider.cert
- javaTutorial . tomcat 1739 2023-04-27 14:31:07
-
- How to install tomcat and deploy Java web projects on CentOS
- 1. Preparation a. Download the tomcatlinux package, address: , the version we downloaded is 8.0, the download method is as shown in the figure: b. Because the installation of tomcat depends on javajdk, we need to determine whether jdkb.1 is installed under the linux system. (xshell) Connect to the Linux system and enter the command in b.2 below: java-version. If the jdk version number is displayed, it proves that it has been installed. If it is not displayed, it proves that it is not installed. If it is not installed, please refer to the following address to install it: / /www.jb51.net/os/redhat/73016.html, as shown in the figure: c. The software and systems required for operation are as follows
- javaTutorial . tomcat 1957 2023-04-26 14:22:15
-
- How to manually configure Servlet to run in Tomcat in Java?
- 1. The preparation work is as shown below. First create each file as required. If you think it can run, you are wrong (I was stuck here at the beginning). The project structure of idea. If you have learned to use idea to create servlet applications, you must You will find that the web.xml provided here is not complete at all. Please use the following code to include the above-mentioned servlet tag //Add the above-mentioned servlet tag code here 2. The problem with encoding the compiled file is as above. I wanted to compile it at first, but an error was reported. The reason here is that javac will read the source file code according to your operating system encoding, and my computer defaults to GBK, but we all write these source codes in Notepad, and Notepad uses UTF-8 by default. save at
- javaTutorial . tomcat 1300 2023-04-26 09:55:07
-
- How to set up a Java Web project running environment on a Linux system?
- 1. Install jdk1. Uninstall the old version or the jdk that comes with the system (1) List all installed jdk | rpm-qa | grepjdk (2) Uninstall unnecessary jdk | yum-yremove installation package name 2. Download and unzip the jdk ( 1) Download the installation package and enter the /usr/local directory to create a new java directory mkdirjava. Use the wget command in the java directory to download the installation package, such as wget--no-cookies--no-check-certificate--header"cookie:gpw_e24 =http%3a%2f%2fwww.o
- javaTutorial . tomcat 1418 2023-04-26 08:07:06
-
- How to use Maven tools and Tomcat in Javaweb
- 1. Maven tool 1, about mavenMaven is a project construction tool. As long as the created project follows the Maven specification (called a Maven project), it can be managed using Maven: compilation, packaging, etc. 2. Install maven. If you have already configured the JDK when installing idea, then you do not need to install maven. Idea already comes with maven. If the JDK is not installed and configured, the specific download and configuration process is relatively simple and will not be described here. 3. Using maven4, understand that pom.xmlpom.xml is the core configuration file in the maven project, and xml is a file format. This format is also a tagged language, similar to
- javaTutorial . tomcat 925 2023-04-25 09:58:06
-
- Overview of Java class loaders and class loading process
- 1. The class loading process loads the fully qualified name of the class (package name + class name), obtains the .class file of the class, and loads it into the metaspace. Link verification: Verify the security of the .class file. Preparation: Allocate memory for static type variables and set default values. Resolution: Convert symbol references in the constant pool into direct references. The symbol references point to an unloaded class, or an unloaded class. field or method, then the parsing will trigger the process of loading, initializing and executing the constructor method init() of the class. If the class has a parent class, jvm will ensure that the init of the parent class is executed first, and then the init of the subclass is executed. . 2. Class loader startup class loader startup class loader is implemented in C/C++ language and is used to load Java core classes
- javaTutorial . tomcat 1029 2023-04-24 10:13:07
-
- How to use and implement Java multithreading
- 1. Application scenarios (1) Ordinary browsers and network services (the network now written is an intermediate component that helps you complete thread control), network processing requests, various dedicated servers (such as game servers) (2) servlet multi-threading. (3) FTP download, multi-threaded file operation. (4) Multi-threading used in the database. (5) Tomcat and tomcat use multi-threading internally. Hundreds of clients access the same WEB application. After tomcat accesses, the subsequent processing is put into a new thread for processing. The new thread finally calls our servlet program (6) Background Tasks: For example, regularly send emails to a large number of users (more than 1 million); regularly update configuration files and task scheduling (such as quart
- javaTutorial . tomcat 1682 2023-04-23 17:04:07
-
- How to deploy java project in pagoda panel
- 1. Install the Java project manager. In the software store of the Pagoda panel, we enter "Java". Note that the first letter must be capitalized. 2. Click "Install" in the operation, and then click the "OK" button. The installation process is very fast. After the installation is successful, let the home page display. 3. Click the setting operation and install tomat8 in the version management in the Java Project Manager. After "Installation Complete", at the same time, in the tomcat version drop-down box, tomcat8 is also displayed as installed. 4. In the project management of the Java Project Manager, click "Add Project". The domain name has been resolved in advance. Select the tomcat version. After filling in the project domain name, click the "OK" button. 5. After adding the project, proceed with the operation
- javaTutorial . tomcat 4773 2023-04-20 15:10:07