I'm a new Java programmer. Following is my code:
public void testSimple1(String lotteryName, int useFrequence, Date validityBegin, Date validityEnd, LotteryPasswdEnum lotteryPasswd, LotteryExamineEnum lotteryExamine, LotteryCarriageEnum lotteryCarriage, @TestMapping(key = "id", csvFile = "lottyScope.csv") xxxxxxxx lotteryScope, @TestMapping(key = "id", csvFile = "lotteryUseCondition.csv") xxxxxxxx lotteryUseCondition, @TestMapping(key = "id", csvFile = "lotteryFee.csv") xxxxxxxx lotteryFee) I want to get all filed's annotations. Some fields are annotated and some ain't.
I know how to use method.getParameterAnnotations() function, but it just returns three annotations.
I don't know how to correspond them.
I expect the following result:
lotteryName - none useFrequence- none validityBegin -none validityEnd -none lotteryPasswd -none lotteryExamine-none lotteryCarriage-none lotteryScope - @TestMapping(key = "id", csvFile = "lottyScope.csv") lotteryUseCondition - @TestMapping(key = "id", csvFile = "lotteryUseCondition.csv") lotteryFee - @TestMapping(key = "id", csvFile = "lotteryFee.csv")