2021-05-05
Posted 苏格拉的底
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了2021-05-05相关的知识,希望对你有一定的参考价值。
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘mvcConversionService’ defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/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 ‘verificationCodeDao’: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Not a managed type: class com.haoduoduo.hdd.entity.VerificationCodeEntity
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:798) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
有这种BUG在Controller添加注解//@EnableAutoConfiguration
可以消除,但是我把这个注解注释又没有影响,不懂。
以上是关于2021-05-05的主要内容,如果未能解决你的问题,请参考以下文章