我使用本指南创建了一个 jHipster 应用程序,然后在 aws 上创建了一个 rds,并在 aplication-dev.yml 文件中设置了 db url、用户名和密码。当我尝试使用本指南将我的应用程序部署到带有 boxfuse 的 aws 时,我收到此错误。
ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name 'accountResource': Unsatisfied dependency expressed through field 'userService';
nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userService': Unsatisfied dependency expressed through field 'jdbcTokenStore';
nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springframework.security.oauth2.provider.token.store.JdbcTokenStore' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@javax.inject.Inject()}
o.s.boot.SpringApplication: Error handling failed (Error creating bean with name 'delegatingApplicationListener'
defined in class path resource [org/springframework/security/config/annotation/web/configuration/WebSecurityConfiguration.class]:
BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration':
Initialization of bean failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'org.springframework.context.annotation.ConfigurationClassPostProcessor.importRegistry' available)
Description: Field jdbcTokenStore in org.foodorder.service.UserService required a bean of type 'org.springframework.security.oauth2.provider.token.store.JdbcTokenStore' that could not be found.
Action: Consider defining a bean of type 'org.springframework.security.oauth2.provider.token.store.JdbcTokenStore' in your configuration.
我该如何解决这个问题?如何定义'action'中描述的bean?谢谢你的帮助。
此外,即使我输入 -db.type=none,boxfuse 也会创建一个 rds 数据库,而且我不知道如何禁用该选项(文档说 -db.type=none),因为我想使用自己的数据库。