IDEA web project pits

1. dependencies are obviously add to the mix, why running newspaper java.lang.ClassNotFoundException?

The path dependencies can only be {project}web/WEB-INF/lib, if you libchanged libsthe tomcat is not recognized after deployment, which reported java.lang.ClassNotFoundException exception


2. Depending on the package next to the directory appear library root, resulting in large areas of the code gains across the board?

IDEA's, if the lib directory Refactor, appears the word library root, leading to project not recognize:

Solution:
First, click on the project structure (Project Structure):

Then "Modules" - "module name" - "Dependencies" - "lib directory" - "minus sign" - "Apply" - "OK", to the exclusion of dependent directory,

Finally re "Add as Library ..." can be.

Guess you like

Origin www.cnblogs.com/caophoenix/p/11980484.html