spring boot 解决无法访问静态资源

在application.yaml中加入: spring.jersey.application-path: /rest 访问controller中的方法:http://localhost:port/rest/xxx 将静态资源放在resources的static下,访问静态资源时直接访问http://localhost:port/**.htm 如下图:
相关文章
相关标签/搜索