public CacheResource(PathResource pathResource) throws IOException { this.file = pathResource.getFile(); if (this.file.isDirectory()) this.file = new File(this.file, "index.html"); this.includes = new ArrayList<>(8); initCache(System.currentTimeMillis()); pathResource.close(); }
public CacheResource(PathResource pathResource) throws IOException { this.file = pathResource.getFile(); if (this.file.isDirectory()) this.file = new File(this.file, "index.html"); this.includes = new ArrayList<>(8); initCache(System.currentTimeMillis()); pathResource.close(); }