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

来源:6-2 买家订单-dao(下)

根红苗正小红花

2020-03-10

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

写回答

3回答

根红苗正小红花

提问者

2020-03-11

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
1
廖师兄
No property buyerOpenId found for type OrderMaster 检查字段的命名,大小写。
2020-03-15
共1条回复

廖师兄

2020-03-11

看后面的内容

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

0
0

weixin_慕丝5083543

2020-03-10

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

0
0

Spring Boot双版本(1.5/2.1) 打造企业级微信点餐系统

从0到1开发中小型企业级Java应用,并学会迭代重构技巧

6410 学习 · 5247 问题

查看课程