摘要:
修改springboot静态资源加载路径 访问应用的根目录即可访问配置路径下的资源,如 /a.png 即可访问到 resources/customer/a.png spring.resources.static-locations=classpath:/static/,classpath:/cust 阅读全文
posted @ 2020-08-11 17:14
9sFresh
阅读(99)
评论(0)
推荐(0)
摘要:
使用./xx.jar运行 默认的springboot jar包需要使用 java -jar xx.jar 运行。 在pom.xml添加如下的executable配置后,打包生成完全可执行jar,在linux下可以直接使用./xx.jar运行。 原理是springboot在jar包中内嵌了额外的脚本。 阅读全文
posted @ 2020-08-11 16:48
9sFresh
阅读(608)
评论(0)
推荐(0)

浙公网安备 33010602011771号