Spring Boot Static Folder In Docker Spring Boot Static Folder In Docker docker docker

Spring Boot Static Folder In Docker


There are two formats that can be used when you do local file handling of resources

file:abc/xyz and file:///abc/xyz.

file:abc/xyz means you want to serve from a relative path abc/xyz.

file:///abc/xyz means you want to serve from an absolute path /abc/xyz.

In your case user.dir was probably / inside the docker container making the path as file://pictures. Because of which the FTP handler was being activated by Java