增加了minidao后启动报错
HHH000409: Using org.hibernate.id.UUIDHexGenerator which does not generate IETF RFC 4122 compliant UUID values; consider using org.hibernate.id.UUIDGenerator insteadException encountered during context initialization - cancelling refresh attempt
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tabDhroomusedController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.dhroom.tabdhroomused.dao.DhroomMinidaoDao com.dhroom.tabdhroomused.controller.TabDhroomusedController.dhroomMinidaoDao; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
新建的minidao 没配置扫描路径吧,没有注入spring容器中
src/main/resources/spring-minidao.xml
页:
[1]