一直報(bào)錯(cuò)說(shuō) 找不到bean
Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'myBatisCRUDController': Unsatisfied dependency expressed through field 'clothService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'clothServiceImpl': Unsatisfied dependency expressed through field 'clothMapper'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'clothMapper' defined in file [F:\Project\target\classes\com\abc\mapper\ClothMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [tk/mybatis/mapper/autoconfigure/MapperAutoConfiguration.class]: Unsatisfied dependency expressed through method 'sqlSessionFactory' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [com/alibaba/druid/spring/boot/autoconfigure/DruidDataSourceAutoConfigure.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.sql.DataSource]: Factory method 'dataSource' threw exception; nested exception is java.lang.NoClassDefFoundError: org/springframework/boot/bind/RelaxedDataBinder
2019-12-13
解決了嗎?
2019-12-13
我也是這個(gè)錯(cuò)
2019-03-07
NoClassDefFoundError: org/springframework/boot/bind/RelaxedDataBinder
boot里面找不到包,org.springframework.boot.bind 包已經(jīng)刪掉了,導(dǎo)致RelaxedPropertyResolver這個(gè)方法已經(jīng)不可用了.
這個(gè)依賴(lài)刪掉即可~~
2018-12-22
我也啟動(dòng)報(bào)錯(cuò),找不到這個(gè)注入的service的Bean,注解都沒(méi)少,對(duì)著老師的代碼寫(xiě)的,到底在哪配置的bean???
2018-11-26
看看少不少注解 @RestController 以及?'myBatisCRUDController'里面的接口上面有沒(méi)有@Autowried ?