java.lang.NoSuchMethodError: org.springframework.web.accept.ContentNegotiationManager.getMediaTyp...

匆匆过客 提交于 2020-04-16 08:04:27

【推荐阅读】微服务还能火多久?>>>

org.springframework.web.servlet.resource.ResourceHttpRequestHandler.setContentNegotiationManager(ContentNegotiationManager)

as of 5.2.4 in favor of using ResourceHttpRequestHandler.setMediaTypes(Map) with mappings possibly obtained from ContentNegotiationManager.getMediaTypeMappings().
 
SpringMVC访问静态资源
 
    <mvc:resources mapping="/wav/**" location="/wav/" />
    <mvc:resources mapping="/images/**" location="/images/" />
    <mvc:resources mapping="/include/**" location="/include/" />
    <mvc:resources mapping="/js/**" location="/js/" />
    <mvc:resources mapping="/css/**" location="/css/" />
    <mvc:resources mapping="/html/**" location="/html/" />
    <mvc:resources mapping="/fonts/**" location="/fonts/" ></mvc:resources>
    <mvc:resources mapping="/plugins/**" location="/plugins/" />
    <mvc:resources mapping="/cordova-js-src/**" location="/cordova-js-src/" />
    <mvc:resources mapping="/*.html" location="/" />
    <mvc:resources mapping="/*.js" location="/" />
    <mvc:resources mapping="/**/*.html" location="/"/>










易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!