报错1:The connection property 'useUnicode' only accepts values of the form: 'true', 'false', 'yes' or 'no'. The value 'true;characterEncoding=utf-8' is not in this set
<property name="url">
<value>jdbc:mysql://localhost:3306/cims?useUnicode=true&characterEncoding=utf-8</value>
</property>
注意参数之间用&隔开,而不是&
报错2:Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
此时就应该检查jdbc的url有没有写错,比如端口啥的
报错2:Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
此时就应该检查jdbc的url有没有写错,比如端口啥的