spring-boot静态资源目录配置

FacingScreen / 2023-08-16 / 原文

spring-boot静态资源目录配置

spring-boot静态资源默认为/src/main/resources下的/static目录,可以通过application.properties的server.servlet.context-path属性配置
如:

server.servlet.context-path=/public