Linux下jps文件用tomcat连接数据库出现乱码

jps文件如图

img

img


浏览器打开页面如图
无论怎么修改jps文件都是出现两个中文乱码,恳请搭救

img

tomcat 配置试了吗

连接字符串加上编码
jdbc:mysql://localhost:3306/Laptop?useUnicode=true&characterEncoding=utf8

getConnection方法里面这样写:
jdbc:mysql://xxx:3306/xxx?characterEncoding=UTF-8&useSSL=false&useUnicode=true&serverTimezone=Asia/Shanghai