Check out example codes for "how to register a static assets folder spring boot". It will help you in understanding the concepts better.
Code Example 1
spring.resources.static-locations=classpath:/files/,classpath:/static-files
Learn ReactJs, React Native from akashmittal.com