spring-boot静态资源目录配置

发布时间 2023-08-16 16:22:37作者: FacingScreen

spring-boot静态资源目录配置

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

server.servlet.context-path=/public