将db.properties文件中的url改为url=jdbc:mysql://localhost:3306/jdbcstudy?characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2B8,即可解决空指针异常的问题
狂神说mysql的jdbc连接数据库空指针异常
最新推荐文章于 2024-07-05 17:52:41 发布
将db.properties文件中的url改为url=jdbc:mysql://localhost:3306/jdbcstudy?characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2B8,即可解决空指针异常的问题