idea + tomcat deployment time, need to pay attention! ! ! ! !

We usually download a tomcat, in fact, and consequently do not engage in, you can directly start the run, no tender some things hanging.

 

However, we have to combine the idea, then, to make a good web project to compile, and then put their own webapp directory, then start. Sometimes, however, with a good environment, it is nothing under tomcat, but really started, the browser can access. The emergence of this situation shows that web files into idea comes tomcat go,

Why? Look output log

 

 Lao Tzu CATALINA_BASE gnaw his mother into this again? ? ? ? ? ? ?

 

 This directory is really a project.

 

How to solve? ? ? ? ?

Find bin \ catalina.bat this file in your tomcat directory. Then place the beginning of plus two sentences.

set CATALINA_BASE=E:\tool\tomcat8\general\apache-tomcat-8.5.37
set CATALINA_HOME=E:\tool\tomcat8\general\apache-tomcat-8.5.37

 

 

That's it. Startup project. Files found under the webapp.

Guess you like

Origin www.cnblogs.com/coder-lzh/p/12127981.html