Web jsp开发学习——dbcp jsp连接MySQL出现中文乱码解决
开发过程中,通过dbcp.properties连接MySQL数据库,向数据库中插入中文字符时,出现乱码情况。
通过查阅资料,发现出现乱码的原因:MySQL数据库使用的是UTF-8编码,而dbcp.properties中连接数据库时没有指定UTF-8编码,造成乱码。
【dbcp.properties】中配置如下即可:
driverClassName=com.mysql.jdbc.Driver url=jdbc:mysql://127.0.0.1:3306/test?useUnicode=true&characterEncoding=UTF-8
ps高级磨皮的7个步骤
算法竞赛入门经典_第二章:循环结构程序设计_上机练习_MyAnswer
文件操作 & 重定向
阶乘之和 & 程序运行时间 & 算法分析
《数据结构与算法分析:C语言描述_原书第二版》CH3表、栈和队列_reading notes
TIJ——Chapter Two:Everything Is an Object
LeetCode Reverse Linked List
LeetCode Contains Duplicate
LeetCode Contains Duplicate II