You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2016-10-28 09:20:09.879 [localhost-startStop-1] ERROR o.s.web.context.ContextLoader - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'scopedTarget.accountService': Invocation of init method failed; nested exception is org.springframework.dao.InvalidDataAccessApiUsageException: Can
not autogenerate id of type java.lang.Long for entity of type my.groupid.account.Account!
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:136)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:408)
The text was updated successfully, but these errors were encountered:
Appreciate if there is full example on how to configure this spring-mvc-quickstart-archetype to mongoDb.
Based on current document by adding having error :
@EnableMongoRepositories(basePackageClasses = Application.class)
AccoutRepository.java
Error:
The text was updated successfully, but these errors were encountered: