Please let me know if we can get it via just configurations or maybe we can implement it without bit investment and security vulnerabilities.

enter image description here

What we need is to have something like web folder with directory listening (navigation) to being able to search, navigate into folder where file is located and download it without match effort...

Structure in a simple impl can be transparent to actual real directory accordingly to some local folder or mounted share via smb...

It may be not even spring, but at least java related technology.

1

There are 1 best solutions below

0
On

Maybe something like this

public void addResourceHandlers(ResourceHandlerRegistry registry) {
    registry
      .addResourceHandler("/resources/**")
      .addResourceLocations("/resources/","classpath:/other-resources/");
}