Thymeleaf uses an XML parser, and the & character is considered a special character in XML. You must replace & with your uniform XML & . Your URL will be as follows:
https://maps.googleapis.com/maps/api/js?v=3.exp&libraries=places
In thimeleaf 3, this will not be a problem, since they wrote a new parser for the thimeleaf.
source share