Current location - Quotes Website - Team slogan - How to learn Java and how does java.exe change the port it uses?
How to learn Java and how does java.exe change the port it uses?
How to introduce learning Java;

There is no particularly good way to learn any programming language, but:

Read more books: read more books, read more codes written by others, and read more optimistic codes, such as open source projects.

Write more: write more code, knock down the code in the book you see, write more things you want to write, and find some small projects to practice.

Dost: Think more, think more about why these codes use this method, whether it can be changed, which method can be changed, whether there is a better implementation method, and so on.

Actually, most books are different. If you want to recommend it, you can read the java core technology volume first, and then read the java programming ideas in detail after you have some introductory experience.

How does java.exe change the port it uses?

Modify the default port number of tomcat in Java, and you must be in tomcat environment when running the WEB project. Its default port number is 8080. Sometimes if you want to occupy this port number and run a web project, you need to modify its default port. The specific method is as follows:

1. Open Jakarta-Tomcat-5.5.9 \ conf \ server.xml and find the following code:

& lt! -define a non-SSL coyote http/1.1connector on port 8080->;

& lt connector port ="8080 "

maxThreads = " 150 " minSpareThreads = " 25 " maxSpareThreads = " 75 "

enable lookups = " false " redirect port = " 8443 " accept count = " 100 "

debug = " 0 " connection time out = " 20000 "

disableUploadTimeout = " true " uri encoding = " GBK "/& gt;