admin 管理员组

文章数量: 1086019


2024年2月28日发(作者:爬虫python案例)

32. else if (ance(paramAnn)) {

33. RequestHeader requestHeader = (RequestHeader) paramAnn;

34. headerName = ();

35. required = ed();

36. defaultValue = parseDefaultValueAttribute(tValue());

37. annotationsFound++;

38. }

39. else if (ance(paramAnn)) {

40. requestBodyFound = true;

41. annotationsFound++;

42. }

43. else if (ance(paramAnn)) {

44. CookieValue cookieValue = (CookieValue) paramAnn;

45. cookieName = ();

46. required = ed();

47. defaultValue = parseDefaultValueAttribute(tValue());

48. annotationsFound++;

49. }

50. else if (ance(paramAnn)) {

51. PathVariable pathVar = (PathVariable) paramAnn;

52. pathVarName = ();

53. annotationsFound++;

54. }

55. else if (ance(paramAnn)) {

56. ModelAttribute attr = (ModelAttribute) paramAnn;

57. attrName = ();

58. annotationsFound++;

59. }

60. else if (ance(paramAnn)) {

61. defaultValue = ((Value) paramAnn).value();

62. }

63. else if (tionType().getSimpleName().startsWith("Valid")) {

64. validate = true;

65. Object value = ue(paramAnn);

66. validationHints = (value instanceof Object[] ? (Object[]) value : new Object[] {value});

67. }

68. }

69.

70. if (annotationsFound > 1) {

71. throw new IllegalStateException("Handler parameter annotations are exclusive choices - " +

72. "do not specify more than one such annotation on the same parameter: " + handlerMethod);

73. }

74.

75. if (annotationsFound == 0) {// 若没有发现注解


本文标签: 爬虫 注解 案例 没有 作者