spring:
mvc:
static-path-pattern: /image/**
resources:
static-locations: classpath:/images/
static-path-pattern
:访问模式,默认为/**
,多个可以逗号分隔
static-locations
:资源目录,多个目录逗号分隔,默认资源目录为classpath:/META-INF/resources/
,classpath:/resources/
,classpath:/static/
,classpath:/public/
【转自】
请查看原文详解