JMeter首金网自营项目-转义及数据库数据乱码的解决

JMeter首金网自营项目-转义及数据库数据乱码的解决

 

param的string参数:

需要对”进行转义,加/

{
	"prdCreditInfo": {
		"revision": 0,
		"maxCredit": 5000.0,
		"minCredit": 1000.0,
		"maxTimes": 10,
		"maxCurrentTimes": 10,
		"isGrantCreditMutex": "1",
		"isSpendCreditMutex": "1",
		"quotaTerm": 10,
		"remark": "测试数据",
		"productName": "测试产品006",
		"prdDesc": "测试产品002"
	},
	"partyRoleList": [{
		"roleName": "303",
		"roleCode": "担保机构",
		"roleType": "303"
	}, {
		"roleName": "302",
		"roleCode": "小贷机构 ",
		"roleType": "302"
	}],
	"payTypeList": [{
		"payType": "1",
		"payTypeName": "等额本息",
		"remark": "测试数据"
	}, {
		"payType": "9",
		"payTypeName": "等额还款",
		"remark": "测试数据"
	}],
	"assetCreditRelationList": [{
		"assetName": "assetName01",
		"assetCode": "assetCode01",
		"remark": "测试数据"
	}, {
		"assetName": "assetName02",
		"assetCode": "assetCode02",
		"remark": "测试数据"
	}]
}

转义提交后JMeter提交到mysql中后汉字数据显示乱码:

JMeter首金网自营项目-转义及数据库数据乱码的解决

解决乱码的问题:

JMeter首金网自营项目-转义及数据库数据乱码的解决

 

上一篇:如何使用外部API接口实现快递物流单号查询(快递鸟案例)


下一篇:采用可变式分区管理,使用首次适应算法实现主存的分配与回收