今天在springmvc集成mybatis時,遇到一個錯誤 "characterEncoding" 的引用必須以 ';' 分隔符結尾。
這是“&”定義與解析的原因,需要對&進行轉義。
&轉義為&
如:?useUnicode=true&autoReconnect=true&rewriteBatchedStatements=TRUE
需改為:?useUnicode=true&autoReconnect=true&rewriteBatchedStatements=TRUE