Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【WEB系列】从0到1实现自定义web参数映射器 | 一灰灰Blog #210

Open
liuyueyi opened this issue Jan 23, 2022 · 2 comments
Open

Comments

@liuyueyi
Copy link
Owner

https://spring.hhui.top/spring-blog/2022/01/23/220123-SpringBoot%E7%B3%BB%E5%88%97%E4%B9%8B%E4%BB%8E0%E5%88%B01%E5%AE%9E%E7%8E%B0%E8%87%AA%E5%AE%9A%E4%B9%89web%E5%8F%82%E6%95%B0%E6%98%A0%E5%B0%84%E5%99%A8/

SpringBoot系列之从0到1实现自定义web参数映射器 在使用SpringMVC进行开发时,接收请求参数属于基本功,当我们希望将传参与项目中的对象关联起来时,最常见的做法是默认的case(即传参name与我们定义的name保持一致),当存在不一致,需要手动指定时,通常是借助注解@RequestParam来实现,但是不知道各位小伙伴是否有发现,它的使用是有缺陷的 @RequestPara

@liuyueyi
Copy link
Owner Author

mark

@DavidFengZiYang
Copy link

请教大佬,这个自定义的ParamDataBinder导致了 conversionService 是 null,没办法用自定义的Converter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants