请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

Error creating bean with name 'requestMappingHandlerAdapter'.......

心态蹦了呀老师!图片描述之前测试都是好的 今天成这样了 我又找了之前所有的测试方法试了试,都是这样。看到有同学遇到 但是没解决办法。。。
Error creating bean with name ‘requestMappingHandlerAdapter’…

正在回答 回答被采纳积分+3

3回答

提问者 根红苗正小红花 2020-03-11 23:02:48

org.springframework.beans.factory.BeanCreationException: 

   Error creating bean with name 'requestMappingHandlerAdapter' defined in class path resource [org/springframework/boot/autoconfigure/web/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter]: Factory method 'requestMappingHandlerAdapter' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mvcConversionService' defined in class path resource [org/springframework/boot/autoconfigure/web/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.format.support.FormattingConversionService]: Factory method 'mvcConversionService' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'orderMasterRepository': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Failed to create query method public abstract org.springframework.data.domain.Page com.imocc.repository.OrderMasterRepository.findByBuyerOpenId(java.lang.String,org.springframework.data.domain.Pageable)! No property buyerOpenId found for type OrderMaster! Did you mean 'buyerOpenid'?


0 回复 有任何疑惑可以回复我~
  • No property buyerOpenId found for type OrderMaster
    检查字段的命名,大小写。
    回复 有任何疑惑可以回复我~ 2020-03-15 22:36:41
廖师兄 2020-03-11 22:35:40

看后面的内容

https://img1.sycdn.imooc.com/szimg/5e68f73a0950053a26400734.jpg

0 回复 有任何疑惑可以回复我~
weixin_慕丝5083543 2020-03-10 23:06:51

可能是启动类扫描包的问题

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信