JMeter首金網自營項目-轉義及數據庫數據亂碼的解決

 

param的string參數:java

須要對」進行轉義,加/mysql

{
	"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中後漢字數據顯示亂碼:sql

解決亂碼的問題:測試

相關文章
相關標籤/搜索