Web project just to pack, but can not find the project resources?

  Programming is no small matter, regardless of the level of language or tool level, should be familiar with programming in order in the course of the public to enjoy the silky, otherwise it everywhere Caton, time-consuming do not say, there is no sense of accomplishment. Yard line and also with the process Idea for many years, tools or environmental experience problems, ask the next degree of your mother get away, do not bother to summarize the record Gesha. But people are bitchy and forgetful, things are offense, degree of your mother also always ask questions, or spend little time points record, give yourself a note, also share the same problems of people, Amitabha, Good, good Good, good.

  After this simple import or create a new web project under the Idea of ​​the record, when you want to deploy happy to run, but found not find the item you want to deploy, as such the following:

 

   In fact, this is mainly because your web project without web, when deployed, Idea did not find your web project identification, such as web.xml, you look even point you will find in the Idea of ​​engineering structures, our traditional webapp directory all look like much, just like the following example:

 

   So the question to find, because you never know how the project is not introduced into the ventilation is a web project, no web resources, it can not be deployed on the web server. There is a simple solution is to put your directory into a web directory web project. The entrance web project is web.xml, therefore, the main solution is to find this by setting lets Idea entrance file and specify a directory resource web project (ROOT PATH), that is, we have developed a common web directory or webapp directory :

 

   If your project would also not have the resources directory, and use the new operating resources directory map can be, if there is a resource directory, to specify your own directory for project resources directory, just press a route map that is modified can:

 

   Finally, you will see your file specified in the Idea finally became a resource directory.

  Get called!

 

Guess you like

Origin www.cnblogs.com/chenbenbuyi/p/12385964.html
Recommended