我正在使用spring引导,并尝试在我的视图中添加一个Google。以下是我要做的事:
控制器
@RequestMapping(value = "/map", method = RequestMethod.GET, produces = "text/html")
public String map(Model model) { return "map"; }View (资源/模板/map.html)
<script async="async" defer="defer"
src="https://maps.googleapis.com/maps/api/js?key=/*mykey*/&callback=initMap;">
</script>误差
org.xml.sax.SAXParseException: Referenz zu Entity "callback" muss mit dem Begrenzungszeichen ";" enden.如何看到我在回调方法后面添加了一个";“,但是它仍然不起作用(当您不使用spring引导时,它也没有使用";")。
我怎么才能解决这个问题?
发布于 2016-07-18 10:30:48
在您的url中更改&和&。
https://stackoverflow.com/questions/38434174
复制相似问题