
spring
杭小飞
这个作者很懒,什么都没留下…
展开
-
Ambiguous mapping. Cannot map ‘xxxx‘ method
Ambiguous mapping. Cannot map ‘xxxx’ methodxxxx to {POST /csp/order}: There is already ‘xxxxController’ bean method问题原因:多个controller中有相同的映射路径“/csp/order”,解决办法:idea搜索“/csp/order”,找到多个重复的路径,修改为不同即可。...原创 2021-11-10 13:57:56 · 769 阅读 · 0 评论 -
解决BindException: org.springframework.validation.BeanPropertyBindingResult: 2 errors问题
Resolved [org.springframework.validation.BindException: org.springframework.validation.BeanPropertyBindingResult: 2 errorsField error in object 'demoQo' on field 'endTime': rejected value [2021-10-31 23:59:59]; codes [typeMismatch.demoQo.endTime,typeMisma原创 2021-10-26 15:34:59 · 13277 阅读 · 1 评论 -
spring启动错误Field demoService in xxxx required a bean of type ‘xxxx‘ that could not be found
Description:Field demoService in com.demo.controller.DemoController required a bean of type 'com.demo.service.DemoService' that could not be found.The injection point has the following annotations: - @org.springframework.beans.factory.annotation.Autow原创 2021-10-26 15:13:02 · 3955 阅读 · 0 评论 -
spring报错--This application has no explicit mapping for /error
Whitelabel Error PageThis application has no explicit mapping for /error, so you are seeing this as a fallback.Tue Oct 26 14:38:57 CST 2021There was an unexpected error (type=Not Found, status=404).No message available原因是controller没有添加@controller解原创 2021-10-26 14:42:12 · 467 阅读 · 0 评论