completed group batch feature

This commit is contained in:
2026-06-08 09:18:06 +02:00
parent c87f1e5e23
commit 24f435a09f
60 changed files with 2006 additions and 323 deletions

View File

@@ -0,0 +1,22 @@
package zw.qantra.tm.configs;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import java.nio.file.Path;
@Configuration
public class ReportsResourceConfig implements WebMvcConfigurer {
@Value("${app.reports.storage-path:./reports}")
private String reportsStoragePath;
@Override
public void addResourceHandlers(ResourceHandlerRegistry registry) {
Path reportsDir = Path.of(reportsStoragePath).toAbsolutePath();
registry.addResourceHandler("/reports/**")
.addResourceLocations("file:" + reportsDir + "/");
}
}