I am using spring boot resources static-locations to specify a directory as a web access directory
resources:
static-locations: file:./opt
As the above configuration, all files in the opt directory can be accessed through the web, but if I want to exclude a subdirectory of opt so that it cannot be accessed through the web, how should I configure it?
Does the configuration allow wildcard access?
resources:
static-locations: file:./opt/**/down
I tested the wildcards above, but it doesn't work, but I do have this requirement, is there any way? Thanks in advance