fix: 🐛 support path attribute in @FeignClient and refactor annotation constants#1115
Conversation
…on constants - Support the `path` attribute of `@FeignClient` for base URL configuration in API documentation. - Refactor `SpringBootDocBuildTemplate` to extract mapping annotations into `buildSpringMappingAnnotations()` method for better maintainability. - Add new constants in `DocAnnotationConstants`: `CONSUMES`, `PRODUCES`, `METHOD`, `PARAMS`, and `PATH_MAPPING_PROPS`. - Deprecate misnamed `REQUEST_HERDER` and introduce correct `REQUEST_HEADER` in `SpringMvcAnnotations`. - Update `SpringMVCRequestHeaderHandler` and `JavaClassValidateUtil` to use the new `REQUEST_HEADER` constant. - Improve code consistency by using constants instead of string literals across annotation processing. - Update copyright year to 2025 across relevant files. Fixes TongchengOpenSource#1114
|
🔍 Before proceeding, please review the contribution guidelines This includes requirements for:
Thanks for your PR. 🙏 In addition, if you have added new features, please provide example code in the repository smart-doc-group/smart-doc-example-cn. This will help other users understand how to use the new features. Code Style Reminder: 🔍 提交前请务必完成以下检查 需特别注意:
感谢您提交的PR。 🙏 另外,如果您添加了新功能,请在仓库smart-doc-group/smart-doc-example-cn中提供示例代码。这将帮助其他用户了解如何使用新功能。 代码风格提示: |
pathattribute of@FeignClientfor base URL configuration in API documentation.SpringBootDocBuildTemplateto extract mapping annotations intobuildSpringMappingAnnotations()method for better maintainability.DocAnnotationConstants:CONSUMES,PRODUCES,METHOD,PARAMS, andPATH_MAPPING_PROPS.REQUEST_HERDERand introduce correctREQUEST_HEADERinSpringMvcAnnotations.SpringMVCRequestHeaderHandlerandJavaClassValidateUtilto use the newREQUEST_HEADERconstant.Fixes #1114