*, Tomcat version problem
Note: 64-bit systems use 64-bit tomcat 32-bit systems use 32-bit tomcat Otherwise, in a flash, and when there is no abnormality, you will know that these two sentences are reasonable! O(∩_∩)O haha~
*, How to put two or more project projects under Tomcat
If there are files that need to be used each other or other operations that need to be interacted between two or more projects, the two or more projects can be placed in the same root directory, such as the Root directory.
*, Tomcat's Root directory
If you put the web project directly in the root directory, you do not need (must?) add the project name to access the web project in this directory.
*, Tomcat's webapps directory
If you put the entire project directly under webapps First: When accessing the project, you need to specify the project name Second: files in different directories cannot use each other Other: to be determined
*, Tomcat's appbase and docbase
The last level of the docbase directory is the application's root directory (context) Appbase treats each subdirectory under the last level directory as an application (host)
*, Tomcat's memory overflow PermGen space
Add in the first line of catalina.bat: Java代码 :set JAVA_OPTS=-Xms64m -Xmx256m -XX:PermSize=128M -XX:MaxNewSize=256m -XX:MaxPermSize=256m Add to the first line of catalina.sh: Java代码 :JAVA_OPTS=-Xms64m -Xmx256m -XX:PermSize=128M -XX:MaxNewSize=256m -XX:MaxPermSize=256m Among them: xmx is the maximum space, MaxPermSize is the maximum allocated non-heap memory, you can adjust these two
Note: Click me for a more detailed explanation!
*, the configuration path of the project name in Tomcat and its file
org.eclipse.wst.common.component also remember to restart the IDE
*, the process of starting the deployment project when Tomcat starts
First of all, the project in Tomat's default webapp directory will be loaded and deployed for the first time; Then, if a project under webapps is configured in the context parameter of server.xml under Tomcat, the project will be loaded twice; Therefore: I have encountered the situation that the spring configuration is loaded twice, and the quartz task is called twice (multiple times), which is really helpless!