After [Eclipse] [6] project deployment is missing jsp, css and other static resource files

text:

1, there may be no deployment path set

(1) run the project, the first right-Tomcat → clean, and then double-click to enter the Tomcat Tomcat configuration interface

(2) Tomcat configuration interface server locations selected here a second, and then following their own path to deploy path into Tomcat deployment projects, such as: E: \\ apache-tomcat-7.0.82 \ webapps

(3) Once configured to start the project, to see if the class file and generate the corresponding static resource files in the webapps directory

2, no static files, then read on

(1) Right project → properties → deployment assembly → add → Folder

(2) select the item static file directory, deployment assembly will be more of a bar static file path

(3) redeploying

Reference blog:

eclipse deploy the project to Tomcat lack jsp, css and other static resource files solution - Oumuv's blog - CSDN blog
https://blog.csdn.net/oumuv/article/details/78492310

Guess you like

Origin www.cnblogs.com/huashengweilong/p/10964289.html