Article Tags
Home Technical Articles Backend Development
vscode builds java development environment

vscode builds java development environment

The method for vscode to build a java development environment is: 1. First, you need to configure the environment variables, and then install java related plug-ins; 2. Then perform basic development configuration, configure maven, set global search ignore folders, and perform junit testing; 3. Finally Just use tomcat to debug the project.

Dec 17, 2019 am 09:21 AM
vscode 搭建 java 开发环境
Introduction to several garbled code processing methods in Java

Introduction to several garbled code processing methods in Java

Java garbled solution: 1. The backend receives the request parameters, decodes them according to ISO-8859-1, gets the binary stream, and then encodes it with UTF-8. 2. Modify the server (tomcat) configuration. 3. Set the request parameter encoding directly in the servlet.

Dec 10, 2019 pm 03:34 PM
java 乱码
Garbled characters appear when url passes Chinese parameters in Java

Garbled characters appear when url passes Chinese parameters in Java

The reason why the Chinese parameter in "java" is garbled is that the server uses "ISO" encoding by default to decode the byte stream into a character stream. The solution is: the obtained string needs to be encoded into a byte stream using "ISO" first, and then decoded into a character stream using "utf-8".

Dec 05, 2019 pm 02:05 PM
java url 中文参数 乱码
Basic Java interview questions (4)

Basic Java interview questions (4)

What is a.hashCode() used for? What does it have to do with a.equals(b)? The difference between byte stream and character stream. What is java serialization and how to implement java serialization? Or please explain the role of Serializable interface. Describe the principle mechanism of JVM loading class files?

Dec 04, 2019 pm 03:04 PM
Java
tomcat cannot start under linux

tomcat cannot start under linux

The reason why "tomcat" cannot be started under "linux" is: the port is occupied. The solution is: first check the log file to confirm the occupied port number, then use the "netstat" command to check the occupied status of each port, and finally stop the process after confirming that the occupied process can be stopped, and restart "tomcat". Can.

Dec 03, 2019 pm 02:24 PM
linux tomcat 无法启动
Solution to Chinese garbled java file name

Solution to Chinese garbled java file name

Solution to Chinese garbled file names in Java: 1. Use the encode(formFileName, "UTF-8") method to change the file name encoding. 2. Use the String(formFileName.getBytes("UTF-8"), "ISO-8859-1") statement to solve the problem.

Nov 30, 2019 am 11:38 AM
java
Java page garbled solution

Java page garbled solution

Solutions to garbled java pages: 1. The garbled page submitted to tomcat can be solved by configuring the encoding format in tomcat/conf/server.xml. 2. If the JSP page is garbled, just use the "String(byte[],decode)" method at the beginning of the page to specify the encoding format.

Nov 29, 2019 am 11:27 AM
java
Detailed explanation of the causes and solutions of garbled characters in Java

Detailed explanation of the causes and solutions of garbled characters in Java

The reason for garbled characters: It is caused by the inconsistency between the original encoding format of the string and the encoding format used for parsing when reading. Solution: Just change the encoding format of the garbled text in the java code.

Nov 28, 2019 am 10:11 AM
java 乱码
Solution to garbled request in java

Solution to garbled request in java

Solutions to garbled requests in java: 1. Get request: Find the first connector in the tomcat configuration file server.xml and add the URIEncoding=UTF-8 attribute. 2. Post request: Set the encoding character set before obtaining the request parameters.

Nov 26, 2019 am 10:19 AM
java
NGINX achieves high availability under Linux

NGINX achieves high availability under Linux

Under Centos, you can obtain the installation by switching the yum source. You can also directly download the installation package. The following commands require root permissions to execute: first install the necessary libraries (the gzip module in nginx requires the zlib library, and the rewrite module requires the pcre library).

Nov 25, 2019 pm 04:01 PM
linux nginx 高可用
Introduction to basic knowledge of Linux (essential for backend)

Introduction to basic knowledge of Linux (essential for backend)

The system knowledge points and interview questions I have summarized for Java learning are now open source and will continue to be improved. Suggestions and guidance are welcome and Star: [Link]

Nov 23, 2019 pm 04:51 PM
linux 后端 后端开发
Java post request garbled solution

Java post request garbled solution

Solution to the garbled post request in Java: Enter request.setCharacterEncoding("utf-8"); on the requested page to solve the garbled post request. Post requests must be used when uploading files. Post requests have no length limit and are more secure.

Nov 22, 2019 pm 02:37 PM
java 乱码
How to read files in java

How to read files in java

Methods for reading files in java: 1. Read by using the [java.io] method, relative to the relative path of the current user directory; 2. Read by using the [java.lang.ClassLoader] method, relative to the classpath The relative path to read.

Nov 21, 2019 pm 01:58 PM
java 读取文件
How to import packages in java?

How to import packages in java?

The first step: Create a new folder lib in the java project, and copy the jar package that needs to be imported into the lib folder; the second step, select the jar package, right-click [Build Path] → [Configure Build Path... 】After that, the jar package has been successfully imported.

Nov 16, 2019 pm 04:55 PM
java

Hot tools Tags

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

vc9-vc14 (32+64 bit) runtime library collection (link below)

vc9-vc14 (32+64 bit) runtime library collection (link below)

Download the collection of runtime libraries required for phpStudy installation

VC9 32-bit

VC9 32-bit

VC9 32-bit phpstudy integrated installation environment runtime library

PHP programmer toolbox full version

PHP programmer toolbox full version

Programmer Toolbox v1.0 PHP Integrated Environment

VC11 32-bit

VC11 32-bit

VC11 32-bit phpstudy integrated installation environment runtime library

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Hot Topics

Java Tutorial
1660
14
PHP Tutorial
1261
29
C# Tutorial
1234
24