jmeter使用及遇到的問題彙總

遇到的問題:

  1. 問題:Cannot create PoolableConnectionFactory (The server time zone value '?��???????' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if you want to utilize time zone support.)

    解決方案:

    出現這個問題的原因是時間無法識別,只需要在連接mysql的url後添加:?serverTimezone=UTC即可

     如:jdbc:mysql://localhost:3306/test?serverTimezone=UTC  #在數據庫地址後邊添加

  2. 問題:發起HTTP請求調用接口,接口內容是插入數據到數據庫,數據中包含中文,插入到數據庫後數據變成了??

    解決方案:請求配置中添加utf-8

    image.png


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章