html页面中原样输出xml/html标签的几种方法

原创 2018-01-15 17:49 阅读(3015)次
有很多时候,我们需要在页面中原样输出xml或者html标签,例如技术博客里的代码,配置文件等都有标签,如果直接写成如:<xxx>文字</xxx>写成上面这样的内容,输出在html页面中时,就会当成标签渲染掉了,页面中只显示'文字'两个字,看不到<xxx>文字</xxx>原样输出,如果想达到原样输出他们,有几种方法:1.使用<pre></pre>标签,把要输出的标签放在它里就可以原样输出了,html编辑器里的插入代码功能,就是用它来做到的2.使用<xmp></xmp>标签,同上3.转义,把<和&...

xheditor图片上传到springmvc中报The current request is not a multipart request

原创 2018-01-08 17:11 阅读(1554)次
xheditor图片上传到springmvc中报:The currentrequest is not a multipart requestjs代码如下:$(document).ready(function() { $('#editorTx').xheditor({ upImgUrl:"http://127.0.0.1:8090/dglmp/api/imgUpload", upImgExt:"jpg,jpeg,gif,png" }); }); springmvc代码如下:@RequestMapping(value="/i...