*************************** APPLICATION FAILED TO START *************************** Description: Binding to target [Bindable@5bf217b type = org.springframework.boot.autoconfigure.web.ResourceProperties, value = 'provided', annotations = array<Annotation>[@org.springframework.boot.context.properties.ConfigurationProperties(prefix=spring.resources, value=spring.resources, ignoreInvalidFields=false, ignoreUnknownFields=false)]] failed: Property: spring.resources.cache-period Value: 0 Origin: "spring.resources.cache-period" from property source "refresh" Reason: The elements [spring.resources.cache-period] were left unbound. Action: Update your application's configuration
進入以後發現 果真 如報錯信息所示:devtools 中靜態塊配置了spring.resources.cache-period 而且value 爲 0
web
spring.resources.cache-period
換成了 spring.resources.cache.period