ps1 不同用户的不同请求中参数a都是不一样的
ps2 不能给方法加参数,因为太复杂,如果加参数至少要加上百个方法,而且容易遗漏。
java项目
先谢过了,提供思路和方向也好
高洛峰2017-04-18 09:44:07
Method 1: Add parameters to the method, but instead of adding general parameters, you can try using JDK1.5 feature variable length parameters;
Method 2: Use ThreadLocal data structure to store thread input parameters;
Method 3: Use cache, etc. ;
I can think of so much for now, I don’t know if there is a more reasonable logical way to handle the business, I hope it can help you~