fix[storage]: fixed the issue that when packaged as a jar, the resource could not get the absolute path

This commit is contained in:
godotg
2022-12-13 11:10:42 +08:00
parent 80a04ae581
commit d95088cfa8
7 changed files with 100 additions and 150 deletions
@@ -78,8 +78,8 @@ public class ExportBinaryTest {
@Test
public void test() throws Exception {
var config = new StorageConfig();
config.setScanPackages(new String[]{"com.zfoo.storage.export"});
config.setResourceLocations(new String[]{"classpath:/excel"});
config.setScanPackage("com.zfoo.storage.export");
config.setResourceLocation("classpath:/excel");
config.setWriteable(true);
config.setRecycle(false);
var storageManager = new StorageManager();