对于注解@ModelAttribute,我正在获取WARN日志:
@ModelAttribute注解参数应该已经通过ExpandedParameterBuilderPlugin展开
导致类是ParameterTypeReader,包springfox. documentation. spring. web. readers. parameter。我在控制器中使用@ModelAttribute。如何修复此警告?
对于注解@ModelAttribute,我正在获取WARN日志:
@ModelAttribute注解参数应该已经通过ExpandedParameterBuilderPlugin展开
导致类是ParameterTypeReader,包springfox. documentation. spring. web. readers. parameter。我在控制器中使用@ModelAttribute。如何修复此警告?
1条答案
按热度按时间5cg8jx4n1#
对于int和String等基本类型,应避免使用ModelAttribute注解。请使用请求参数或路径变量。