Use spring.web.resources.static-locations property
spring.mvc.static-path-pattern=/content/**
spring.webflux.static-path-pattern=/content/**
-spring.resources.static-locations=classpath:/files/,classpath:/static-files
\ No newline at end of file
+spring.web.resources.static-locations=classpath:/files/,classpath:/static-files
\ No newline at end of file
