简体   繁体   中英

How to hot deploy newly created files to Apache Tomcat in Eclipse IDE?

I have a peculiar problem. I am extracting the data from a database in the form of .csv file and then passing this file to d3.js for visualization.

The problem is, d3.js doesn't allow file:// based protocol (so I cannot give path to .csv file directly). The .csv file needs to be located on the server. But this file is generated on the run time.

I tried dumping the file in the same project folder, but as expected, the Eclipse doesn't take the updated file until next clean and build action.

Any idea how to work around this problem?

您需要将文件放置在应用程序在Tomcat上部署的位置(例如:Tomact7 \\ webapps \\ myProject ...),而不是在Eclipse Workspace位置,这样您的js可以通过其URL或相对路径访问文件。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM