JSP file under idea cannot import js, css file using Link tag [Solved]

First of all, my path is okay, but in the browser
Insert picture description here
I always find that there is no style folder that I introduced in the out directory.
Solution: My folder is directly pasted under the web, and the imported files need to be imported. Build into the project,
Insert picture description here
rebuild it and
Insert picture description here
restart tomcat.
Explain:
Source roots (or source folders)
specify a folder through this class, and you tell IntelliJ IDEA that the source code contained in this folder and its subfolders can be compiled as part of the build process.
Test source roots (or test source folders; shown as rootTest)
These roots are similar to source roots, but are used for code used for testing (for example, for unit testing). The test source folder allows you to separate test-related code from production code.
Usually, the compiled results of the source and the test source are placed in different folders.
Resource roots are
used for resource files (images, various configuration XML and property files, etc.) in the application.
During the build process, all the contents of the resource folder are copied to the output folder as shown below.
Similar to the source, you can specify the build resource. You can also specify the folder in the output folder to which your resources should be copied.
Test resource roots
(or test resource folder; such as roottestresourceij; only in java module) are resource files related to your test source. In all other respects, these folders are similar to resource folders

May your heart be like flowers and trees

Guess you like

Origin blog.csdn.net/nbcsdn/article/details/99824615