Html SpringMVC生成的清单xml清单获取失败(406)
我在服务器端生成一个html5缓存清单xml,然后 应用程序缓存错误事件:清单获取失败(406)。此错误消息在我的控制台中 我的html中有此标记:Html SpringMVC生成的清单xml清单获取失败(406),html,spring-mvc,manifest,offline-browsing,Html,Spring Mvc,Manifest,Offline Browsing,我在服务器端生成一个html5缓存清单xml,然后 应用程序缓存错误事件:清单获取失败(406)。此错误消息在我的控制台中 我的html中有此标记: <html manifest="http://localhost:8080/test/api/view/view/system/manifest"> 我的web.xml中有这个 <mime-mapping> <extension>manifest</extension> <m
<html manifest="http://localhost:8080/test/api/view/view/system/manifest">
我的web.xml中有这个
<mime-mapping>
<extension>manifest</extension>
<mime-type>text/cache-manifest</mime-type>
</mime-mapping>
显示
文本/缓存清单
如果我从浏览器调用控制器方法,将生成:
缓存清单
缓存:
api/view/bestellijstsearchlistview/order/search/template/tags,名称,%20customer.naam,orderParts.orderItems.product.description,orderParts.orderItems.product.externalId/page/1/size/500
网络:
api/视图/视图/系统/ping
*
我必须生成此文件我如何才能做到这一点,我的解决方案会有什么问题?我通过从注释中删除products属性并将.manifest添加到urlname中,成功地解决了此问题 我的控制器的标题:
@RequestMapping(value = "cache.manifest", method = RequestMethod.GET)
@ResponseStatus(HttpStatus.OK)
@ResponseBody
public String manifest() {
<html manifest="http://localhost:8080/system/cache.manifest">
@RequestMapping(value=“cache.manifest”,method=RequestMethod.GET)
@ResponseStatus(HttpStatus.OK)
@应答器
公共字符串清单(){
我从注释中删除了products属性,并将.manifest添加到urlname中,从而解决了这个问题
我的控制器的标题:
@RequestMapping(value = "cache.manifest", method = RequestMethod.GET)
@ResponseStatus(HttpStatus.OK)
@ResponseBody
public String manifest() {
<html manifest="http://localhost:8080/system/cache.manifest">
@RequestMapping(value=“cache.manifest”,method=RequestMethod.GET)
@ResponseStatus(HttpStatus.OK)
@应答器
公共字符串清单(){