Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

cheegoday/moveFileOutsideJar

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
2 Commits
 
 
 
 

Repository files navigation

moveFileOutsideJar

when package a springboot project to a jar,copy all resources oustside the jar so that file system could find those resources
springboot发布成jar包后,jar里面的文件系统封闭的,操作系统的文件系统无法找到jar里面的文件,因此需要全部移到jar外部。因此,写了这样一个自启动的类,一旦springboot项目启动,则自动复制jar内部的静态文件到jar外部的指定目录。

About

when package a springboot project to a jar,copy all resources oustside the jar so that file system could find those resources

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.