在配置application.properties文件时,出现两处报错如下:
Deprecated configuration property 'management.server.servlet.context-path'
Deprecated configuration property 'spring.resources.static-locations'
这是因为在SpringBoot较新的版本中,这两个属性已经被弃用,需要将management.server.servlet.context-path
修改为management.endpoints.web.base-path
,该属性是Spring Boot中用于配置管理端点的URL路径的属性将spring.resources.static-locations
修改为web.resources.static-locations
,该属性是Spring框架中用于配置静态资源路径的属性。