數據源配置時加上編碼轉換格式後出問題了:mysql
The reference to entity "characterEncoding" must end with the ';' delimitersql
這個錯誤就是 context.xml中設置數據源連接URL的問題編碼
<context-param>url
<param-name>url</param-name> <param-value>jdbc:mysql://localhost:3306/bookstore?useUnicode=true&characterEncoding=UTF-8</param-value>
</context-param>code
正確的以下:xml
<context-param>it
<param-name>url</param-name> <param-value>jdbc:mysql://localhost:3306/bookstore?useUnicode=true&characterEncoding=UTF-8</param-value>
</context-param>配置