In the web project, the configuration folder problem

Problem: There is a configuration item in the project to configure the storage path of the download file, and the absolute path needs to be configured. When deploying, the configured path is written local.seal.dir=E:\path, so that the save path cannot be found when downloading the file. Because the path obtained according to the configuration item in the project is the bin directory of Tomcat, so \bin\ will be created by default in the bin directory. E:\path path, and E: will fail to create.

Workaround: local.seal.dir=E:\pathChange tolocal.seal.dir=E:\\path

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325879568&siteId=291194637