Grails 3.1.4 rest-api uygulama işlemini yapılandırmaya çalışıyorum. Ben kimlik doğrulaması için Mongo ve Bahar güvenlik kullanmak istiyorum ama application.yml h2 Veri kaynağından silmek ve hazırda bekletme ve ben gibi istisnalar bir sürü almak uygulamayı çalıştırmayı denediğinizde:Grails, Spring Security ve Mongo
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'persistenceInterceptor':
Cannot create inner bean '(inner bean)#1b3bb287' of type [org.grails.orm.hibernate4.support.AggregatePersistenceContextInterceptor]
while setting constructor argument with key [0]; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#1b3bb287':
Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method:
public void org.grails.orm.hibernate4.support.AggregatePersistenceContextInterceptor.setHibernateDatastores(org.grails.orm.hibernate.AbstractHibernateDatastore[]); nested exception is
org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.grails.orm.hibernate.AbstractHibernateDatastore]
found for dependency [array of org.grails.orm.hibernate.AbstractHibernateDatastore]:
expected at least 1 bean which qualifies as autowire candidate for this dependency.
Hoşgeldiniz. SO'nun nasıl çalıştığına dair genel bir bakış için lütfen bir [tur] (http://www.stackoverflow.com/tour) edinin. Çok nazik olun ve stacktrace'i yeniden biçimlendirin ve bir [soru] hazırlayın (http://stackoverflow.com/help/mcve). – Peter