Two cases of lib package placement:
- The jar package used will be put into a folder -> lib directory separately, and the lib file and the src file belong to the same level file.
- Put it under the web–WEB-INF file
After the jar package is imported, right-click the jar package and select Add to Library – Module Library
The second is recommended for the two cases, because in the first case, the lib has been loaded before the web file is loaded, and some packages may not be used in the web page, of course there are solutions –> this solves
javaweb The case where the jar package is imported but cannot be used