Alexander Suraphel
01/20/2022, 10:40 AMBig Chungus
01/20/2022, 11:38 AMfiles()
looks at your file system relative to current working directory
resources()
looks at your classpathAlexander Suraphel
01/20/2022, 11:39 AMBig Chungus
01/20/2022, 11:43 AMThemethod does the same as theresources
method except that it allows serving all static files from the source set resource directory that could be embedded in a JAR.files
Alexander Suraphel
01/20/2022, 11:44 AMBig Chungus
01/20/2022, 11:44 AMAlexander Suraphel
01/20/2022, 11:44 AMAlexander Suraphel
01/20/2022, 11:44 AMBig Chungus
01/20/2022, 11:44 AMAleksei Tirman [JB]
01/20/2022, 11:52 AMAlexander Suraphel
01/20/2022, 11:53 AMBig Chungus
01/20/2022, 11:54 AMsrc/main/resources
(i.e. same as files()
, but working on a different working directory), which is not the case and you can also use resources()
to serve files on your classpath comming from other jars too.Big Chungus
01/20/2022, 11:54 AMAleksei Tirman [JB]
01/20/2022, 12:01 PMThemethod does the same as theresources
method except that it allows serving static files from the classpath.files
Big Chungus
01/20/2022, 12:01 PMAleksei Tirman [JB]
01/20/2022, 12:02 PMBig Chungus
01/20/2022, 12:02 PMAleksei Tirman [JB]
01/20/2022, 12:08 PMBig Chungus
01/20/2022, 12:09 PMAleksei Tirman [JB]
01/20/2022, 12:24 PM