janewqiu / pybbs

更好用的Java社区(论坛)
https://bbs.tomoya.cn
0 stars 0 forks source link

Spring Boot 的默认资源 is in jar, but I need to support dynamic upload static file, how? #2

Closed janewqiu closed 7 years ago

janewqiu commented 7 years ago

上面我们介绍了Spring Boot 的默认资源映射,一般够用了,那我们如何自定义目录? 这些资源都是打包在jar包中的,然后实际应用中,我们还有很多资源是在管理系统中动态维护的,并不可能在程序包中,对于这种随意指定目录的资源,如何访问?

Here's how... it take 3 hours to fix this issue. http://412887952-qq-com.iteye.com/blog/2292098 and how to setup yml

janewqiu commented 7 years ago

issue fixed