小编Fra*_*ama的帖子

在脚本标记中使用&符号时出现Thymeleaf渲染错误

我想将谷歌地图javascript添加到Thymeleaf模板中,如下所示:

https://maps.googleapis.com/maps/api/js?v=3.exp&libraries=places
Run Code Online (Sandbox Code Playgroud)

它抛出了异常:

org.xml.sax.SAXParseException; lineNumber: 209; columnNumber: 93; The reference to entity "key" must end with the ';' delimiter
Run Code Online (Sandbox Code Playgroud)

我试图改变&到&,但什么都没有改变.

对你的帮助表示感谢.谢谢!

java spring-mvc web thymeleaf

6
推荐指数
2
解决办法
2055
查看次数

标签 统计

java ×1

spring-mvc ×1

thymeleaf ×1

web ×1