maven project: Use the maven-assembly-plugin plug-in For usage, please refer to http://www.infoq.com/cn/news/2011/06/xxb-maven-9-package For example, assembly.xml needs to be The configuration file is packaged in a separate folder and can be configured as follows <assembly>
maven project:
Use the maven-assembly-plugin plug-in
For usage, please refer to http://www.infoq.com/cn/news/2011/06/xxb-maven-9-package
For example,
assembly.xml needs to be The configuration file is packaged in a separate folder and can be configured as follows
<assembly>
</assembly>
When writing the bin startup script, you need to include the conf directory in the classpath
It would be more troublesome to package the resources yourself. For various configurations, you can try spring-boot