xml文件中有些特殊字符是被禁止的,需要转义
< |
< |
> |
> |
& |
& |
' |
' |
" |
" |
例如数据库配置文件中的url(xml格式)
jdbc:mysql://localhost:3306/test?characterEncoding=utf-8&useSSL=true将会报错,
改为jdbc:mysql://localhost:3306/test?characterEncoding=utf-8&useSSL=true即可。