Jhipster–MySQL java.sql.SQLException:用户’root’@’localhost’拒绝访问(使用密码:NO)

Jhipster–MySQL java.sql.SQLException:用户’root’@’localhost’拒绝访问(使用密码:NO),第1张

概述我试图通过JHipster创建一个项目并将其部署到Openshif.一切似乎都很正常,但是当运行mvn spring-boot:run或从IDE运行时,没有与MySQL数据库的连接.错误是: Exception in thread 'main' org.springframework.beans.factory.BeanCreationException:

我试图通过JHipster创建一个项目并将其部署到Openshif.
一切似乎都很正常,但是当运行mvn spring-boot:run或从IDE运行时,没有与MySQL数据库的连接.

错误是:

 Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.ryantenney.metrics.spring.config.annotation.DelegatingMetricsConfiguration': BeanPostProcessor before instantiation of bean Failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.cache.annotation.ProxyCachingConfiguration': Injection of autowired dependencIEs Failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire fIEld: private java.util.Collection org.springframework.cache.annotation.AbstractCachingConfiguration.cacheManagerBeans; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheConfiguration': Injection of persistence dependencIEs Failed; nested exception is org.springframework.beans.factory.UnsatisfIEdDependencyException: Error creating bean with name 'liquibase' defined in class path resource [ee/st/running/config/DatabaseConfiguration.class]: UnsatisfIEd dependency expressed through constructor argument with index 0 of type [javax.sql.DataSource]: : Error creating bean with name 'dataSource' defined in class path resource [ee/st/running/config/DatabaseConfiguration.class]: Instantiation of bean Failed; nested exception is org.springframework.beans.factory.BeanDeFinitionStoreException: Factory method [public javax.sql.DataSource ee.st.running.config.DatabaseConfiguration.dataSource(com.codahale.metrics.MetricRegistry)] threw exception; nested exception is java.lang.RuntimeException: fail-fast during pool initialization; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [ee/st/running/config/DatabaseConfiguration.class]: Instantiation of bean Failed; nested exception is org.springframework.beans.factory.BeanDeFinitionStoreException: Factory method [public javax.sql.DataSource ee.st.running.config.DatabaseConfiguration.dataSource(com.codahale.metrics.MetricRegistry)] threw exception; nested exception is java.lang.RuntimeException: fail-fast during pool initializationat org.springframework.beans.factory.support.AbstractautowireCapablebeanfactory.createBean(AbstractautowireCapablebeanfactory.java:471)at org.springframework.beans.factory.support.Abstractbeanfactory.getobject(Abstractbeanfactory.java:302)at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)at org.springframework.beans.factory.support.Abstractbeanfactory.doGetBean(Abstractbeanfactory.java:298)at org.springframework.beans.factory.support.Abstractbeanfactory.getBean(Abstractbeanfactory.java:193)at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:370)at org.springframework.beans.factory.support.AbstractautowireCapablebeanfactory.instantiateUsingFactoryMethod(AbstractautowireCapablebeanfactory.java:1095)at org.springframework.beans.factory.support.AbstractautowireCapablebeanfactory.createBeanInstance(AbstractautowireCapablebeanfactory.java:990)at org.springframework.beans.factory.support.AbstractautowireCapablebeanfactory.doCreateBean(AbstractautowireCapablebeanfactory.java:504)at org.springframework.beans.factory.support.AbstractautowireCapablebeanfactory.createBean(AbstractautowireCapablebeanfactory.java:475)at org.springframework.beans.factory.support.Abstractbeanfactory.getobject(Abstractbeanfactory.java:302)at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)at org.springframework.beans.factory.support.Abstractbeanfactory.doGetBean(Abstractbeanfactory.java:298)at org.springframework.beans.factory.support.Abstractbeanfactory.getBean(Abstractbeanfactory.java:198)at org.springframework.context.support.PostProcessorRegistrationDelegate.registerBeanPostProcessors(PostProcessorRegistrationDelegate.java:232)at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:620)at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:467)at org.springframework.boot.context.embedded.EmbeddeDWebApplicationContext.refresh(EmbeddeDWebApplicationContext.java:109)at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:691)at org.springframework.boot.SpringApplication.run(SpringApplication.java:320)at ee.st.running.Application.main(Application.java:56)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.lang.reflect.Method.invoke(Method.java:606)at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.cache.annotation.ProxyCachingConfiguration': Injection of autowired dependencIEs Failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire fIEld: private java.util.Collection org.springframework.cache.annotation.AbstractCachingConfiguration.cacheManagerBeans; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheConfiguration': Injection of persistence dependencIEs Failed; nested exception is org.springframework.beans.factory.UnsatisfIEdDependencyException: Error creating bean with name 'liquibase' defined in class path resource [ee/st/running/config/DatabaseConfiguration.class]: UnsatisfIEd dependency expressed through constructor argument with index 0 of type [javax.sql.DataSource]: : Error creating bean with name 'dataSource' defined in class path resource [ee/st/running/config/DatabaseConfiguration.class]: Instantiation of bean Failed; nested exception is org.springframework.beans.factory.BeanDeFinitionStoreException: Factory method [public javax.sql.DataSource ee.st.running.config.DatabaseConfiguration.dataSource(com.codahale.metrics.MetricRegistry)] threw exception; nested exception is java.lang.RuntimeException: fail-fast during pool initialization; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [ee/st/running/config/DatabaseConfiguration.class]: Instantiation of bean Failed; nested exception is org.springframework.beans.factory.BeanDeFinitionStoreException: Factory method [public javax.sql.DataSource ee.st.running.config.DatabaseConfiguration.dataSource(com.codahale.metrics.MetricRegistry)] threw exception; nested exception is java.lang.RuntimeException: fail-fast during pool initializationat org.springframework.beans.factory.annotation.autowiredAnnotationBeanPostProcessor.postProcesspropertyValues(autowiredAnnotationBeanPostProcessor.java:301)at org.springframework.beans.factory.support.AbstractautowireCapablebeanfactory.populateBean(AbstractautowireCapablebeanfactory.java:1186)at org.springframework.beans.factory.support.AbstractautowireCapablebeanfactory.doCreateBean(AbstractautowireCapablebeanfactory.java:537)at org.springframework.beans.factory.support.AbstractautowireCapablebeanfactory.createBean(AbstractautowireCapablebeanfactory.java:475)at org.springframework.beans.factory.support.Abstractbeanfactory.getobject(Abstractbeanfactory.java:302)at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)at org.springframework.beans.factory.support.Abstractbeanfactory.doGetBean(Abstractbeanfactory.java:298)at org.springframework.beans.factory.support.Abstractbeanfactory.getBean(Abstractbeanfactory.java:193)at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:370)at org.springframework.beans.factory.support.AbstractautowireCapablebeanfactory.instantiateUsingFactoryMethod(AbstractautowireCapablebeanfactory.java:1095)at org.springframework.beans.factory.support.AbstractautowireCapablebeanfactory.createBeanInstance(AbstractautowireCapablebeanfactory.java:990)at org.springframework.beans.factory.support.AbstractautowireCapablebeanfactory.doCreateBean(AbstractautowireCapablebeanfactory.java:504)at org.springframework.beans.factory.support.AbstractautowireCapablebeanfactory.createBean(AbstractautowireCapablebeanfactory.java:475)at org.springframework.beans.factory.support.Abstractbeanfactory.getobject(Abstractbeanfactory.java:302)at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)at org.springframework.beans.factory.support.Abstractbeanfactory.doGetBean(Abstractbeanfactory.java:298)at org.springframework.beans.factory.support.Abstractbeanfactory.getBean(Abstractbeanfactory.java:198)at org.springframework.aop.framework.autoproxy.beanfactoryAdvisorRetrIEvalHelper.findAdvisorBeans(beanfactoryAdvisorRetrIEvalHelper.java:92)at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoproxyCreator.findCandIDateAdvisors(AbstractAdvisorAutoproxyCreator.java:101)at org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoproxyCreator.findCandIDateAdvisors(AnnotationAwareAspectJAutoproxyCreator.java:85)at org.springframework.aop.aspectj.autoproxy.AspectJAwareAdvisorAutoproxyCreator.shouldSkip(AspectJAwareAdvisorAutoproxyCreator.java:103)at org.springframework.aop.framework.autoproxy.AbstractAutoproxyCreator.postProcessBeforeInstantiation(AbstractAutoproxyCreator.java:291)at org.springframework.beans.factory.support.AbstractautowireCapablebeanfactory.applyBeanPostProcessorsBeforeInstantiation(AbstractautowireCapablebeanfactory.java:959)at org.springframework.beans.factory.support.AbstractautowireCapablebeanfactory.resolveBeforeInstantiation(AbstractautowireCapablebeanfactory.java:931)at org.springframework.beans.factory.support.AbstractautowireCapablebeanfactory.createBean(AbstractautowireCapablebeanfactory.java:465)... 25 moreCaused by: org.springframework.beans.factory.BeanCreationException: Could not autowire fIEld: private java.util.Collection org.springframework.cache.annotation.AbstractCachingConfiguration.cacheManagerBeans; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheConfiguration': Injection of persistence dependencIEs Failed; nested exception is org.springframework.beans.factory.UnsatisfIEdDependencyException: Error creating bean with name 'liquibase' defined in class path resource [ee/st/running/config/DatabaseConfiguration.class]: UnsatisfIEd dependency expressed through constructor argument with index 0 of type [javax.sql.DataSource]: : Error creating bean with name 'dataSource' defined in class path resource [ee/st/running/config/DatabaseConfiguration.class]: Instantiation of bean Failed; nested exception is org.springframework.beans.factory.BeanDeFinitionStoreException: Factory method [public javax.sql.DataSource ee.st.running.config.DatabaseConfiguration.dataSource(com.codahale.metrics.MetricRegistry)] threw exception; nested exception is java.lang.RuntimeException: fail-fast during pool initialization; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [ee/st/running/config/DatabaseConfiguration.class]: Instantiation of bean Failed; nested exception is org.springframework.beans.factory.BeanDeFinitionStoreException: Factory method [public javax.sql.DataSource ee.st.running.config.DatabaseConfiguration.dataSource(com.codahale.metrics.MetricRegistry)] threw exception; nested exception is java.lang.RuntimeException: fail-fast during pool initializationat org.springframework.beans.factory.annotation.autowiredAnnotationBeanPostProcessor$autowiredFIEldElement.inject(autowiredAnnotationBeanPostProcessor.java:522)at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)at org.springframework.beans.factory.annotation.autowiredAnnotationBeanPostProcessor.postProcesspropertyValues(autowiredAnnotationBeanPostProcessor.java:298)... 49 moreCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheConfiguration': Injection of persistence dependencIEs Failed; nested exception is org.springframework.beans.factory.UnsatisfIEdDependencyException: Error creating bean with name 'liquibase' defined in class path resource [ee/st/running/config/DatabaseConfiguration.class]: UnsatisfIEd dependency expressed through constructor argument with index 0 of type [javax.sql.DataSource]: : Error creating bean with name 'dataSource' defined in class path resource [ee/st/running/config/DatabaseConfiguration.class]: Instantiation of bean Failed; nested exception is org.springframework.beans.factory.BeanDeFinitionStoreException: Factory method [public javax.sql.DataSource ee.st.running.config.DatabaseConfiguration.dataSource(com.codahale.metrics.MetricRegistry)] threw exception; nested exception is java.lang.RuntimeException: fail-fast during pool initialization; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [ee/st/running/config/DatabaseConfiguration.class]: Instantiation of bean Failed; nested exception is org.springframework.beans.factory.BeanDeFinitionStoreException: Factory method [public javax.sql.DataSource ee.st.running.config.DatabaseConfiguration.dataSource(com.codahale.metrics.MetricRegistry)] threw exception; nested exception is java.lang.RuntimeException: fail-fast during pool initializationat org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcesspropertyValues(PersistenceAnnotationBeanPostProcessor.java:356)at org.springframework.beans.factory.support.AbstractautowireCapablebeanfactory.populateBean(AbstractautowireCapablebeanfactory.java:1186)at org.springframework.beans.factory.support.AbstractautowireCapablebeanfactory.doCreateBean(AbstractautowireCapablebeanfactory.java:537)at org.springframework.beans.factory.support.AbstractautowireCapablebeanfactory.createBean(AbstractautowireCapablebeanfactory.java:475)at org.springframework.beans.factory.support.Abstractbeanfactory.getobject(Abstractbeanfactory.java:302)at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)at org.springframework.beans.factory.support.Abstractbeanfactory.doGetBean(Abstractbeanfactory.java:298)at org.springframework.beans.factory.support.Abstractbeanfactory.getBean(Abstractbeanfactory.java:193)at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:370)at org.springframework.beans.factory.support.AbstractautowireCapablebeanfactory.instantiateUsingFactoryMethod(AbstractautowireCapablebeanfactory.java:1095)at org.springframework.beans.factory.support.AbstractautowireCapablebeanfactory.createBeanInstance(AbstractautowireCapablebeanfactory.java:990)at org.springframework.beans.factory.support.AbstractautowireCapablebeanfactory.doCreateBean(AbstractautowireCapablebeanfactory.java:504)at org.springframework.beans.factory.support.AbstractautowireCapablebeanfactory.createBean(AbstractautowireCapablebeanfactory.java:475)at org.springframework.beans.factory.support.Abstractbeanfactory.getobject(Abstractbeanfactory.java:302)at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)at org.springframework.beans.factory.support.Abstractbeanfactory.doGetBean(Abstractbeanfactory.java:298)at org.springframework.beans.factory.support.Abstractbeanfactory.getBean(Abstractbeanfactory.java:193)at org.springframework.beans.factory.support.Defaultlistablebeanfactory.findautowireCandIDates(Defaultlistablebeanfactory.java:1021)at org.springframework.beans.factory.support.Defaultlistablebeanfactory.doResolveDependency(Defaultlistablebeanfactory.java:916)at org.springframework.beans.factory.support.Defaultlistablebeanfactory.resolveDependency(Defaultlistablebeanfactory.java:862)at org.springframework.beans.factory.annotation.autowiredAnnotationBeanPostProcessor$autowiredFIEldElement.inject(autowiredAnnotationBeanPostProcessor.java:494)... 51 moreCaused by: org.springframework.beans.factory.UnsatisfIEdDependencyException: Error creating bean with name 'liquibase' defined in class path resource [ee/st/running/config/DatabaseConfiguration.class]: UnsatisfIEd dependency expressed through constructor argument with index 0 of type [javax.sql.DataSource]: : Error creating bean with name 'dataSource' defined in class path resource [ee/st/running/config/DatabaseConfiguration.class]: Instantiation of bean Failed; nested exception is org.springframework.beans.factory.BeanDeFinitionStoreException: Factory method [public javax.sql.DataSource ee.st.running.config.DatabaseConfiguration.dataSource(com.codahale.metrics.MetricRegistry)] threw exception; nested exception is java.lang.RuntimeException: fail-fast during pool initialization; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [ee/st/running/config/DatabaseConfiguration.class]: Instantiation of bean Failed; nested exception is org.springframework.beans.factory.BeanDeFinitionStoreException: Factory method [public javax.sql.DataSource ee.st.running.config.DatabaseConfiguration.dataSource(com.codahale.metrics.MetricRegistry)] threw exception; nested exception is java.lang.RuntimeException: fail-fast during pool initializationat org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:747)at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:462)at org.springframework.beans.factory.support.AbstractautowireCapablebeanfactory.instantiateUsingFactoryMethod(AbstractautowireCapablebeanfactory.java:1095)at org.springframework.beans.factory.support.AbstractautowireCapablebeanfactory.createBeanInstance(AbstractautowireCapablebeanfactory.java:990)at org.springframework.beans.factory.support.AbstractautowireCapablebeanfactory.doCreateBean(AbstractautowireCapablebeanfactory.java:504)at org.springframework.beans.factory.support.AbstractautowireCapablebeanfactory.createBean(AbstractautowireCapablebeanfactory.java:475)at org.springframework.beans.factory.support.Abstractbeanfactory.getobject(Abstractbeanfactory.java:302)at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)at org.springframework.beans.factory.support.Abstractbeanfactory.doGetBean(Abstractbeanfactory.java:298)at org.springframework.beans.factory.support.Abstractbeanfactory.getBean(Abstractbeanfactory.java:193)at org.springframework.beans.factory.support.Abstractbeanfactory.doGetBean(Abstractbeanfactory.java:292)at org.springframework.beans.factory.support.Abstractbeanfactory.getBean(Abstractbeanfactory.java:193)at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findDefaultEntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:549)at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findEntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:515)at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$PersistenceElement.resolveEntityManager(PersistenceAnnotationBeanPostProcessor.java:682)at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$PersistenceElement.getResourcetoInject(PersistenceAnnotationBeanPostProcessor.java:655)at org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:155)at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcesspropertyValues(PersistenceAnnotationBeanPostProcessor.java:353)... 71 moreCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [ee/st/running/config/DatabaseConfiguration.class]: Instantiation of bean Failed; nested exception is org.springframework.beans.factory.BeanDeFinitionStoreException: Factory method [public javax.sql.DataSource ee.st.running.config.DatabaseConfiguration.dataSource(com.codahale.metrics.MetricRegistry)] threw exception; nested exception is java.lang.RuntimeException: fail-fast during pool initializationat org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:597)at org.springframework.beans.factory.support.AbstractautowireCapablebeanfactory.instantiateUsingFactoryMethod(AbstractautowireCapablebeanfactory.java:1095)at org.springframework.beans.factory.support.AbstractautowireCapablebeanfactory.createBeanInstance(AbstractautowireCapablebeanfactory.java:990)at org.springframework.beans.factory.support.AbstractautowireCapablebeanfactory.doCreateBean(AbstractautowireCapablebeanfactory.java:504)at org.springframework.beans.factory.support.AbstractautowireCapablebeanfactory.createBean(AbstractautowireCapablebeanfactory.java:475)at org.springframework.beans.factory.support.Abstractbeanfactory.getobject(Abstractbeanfactory.java:302)at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)at org.springframework.beans.factory.support.Abstractbeanfactory.doGetBean(Abstractbeanfactory.java:298)at org.springframework.beans.factory.support.Abstractbeanfactory.getBean(Abstractbeanfactory.java:193)at org.springframework.beans.factory.support.Defaultlistablebeanfactory.findautowireCandIDates(Defaultlistablebeanfactory.java:1021)at org.springframework.beans.factory.support.Defaultlistablebeanfactory.doResolveDependency(Defaultlistablebeanfactory.java:964)at org.springframework.beans.factory.support.Defaultlistablebeanfactory.resolveDependency(Defaultlistablebeanfactory.java:862)at org.springframework.beans.factory.support.ConstructorResolver.resolveautowiredArgument(ConstructorResolver.java:811)at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:739)... 89 moreCaused by: org.springframework.beans.factory.BeanDeFinitionStoreException: Factory method [public javax.sql.DataSource ee.st.running.config.DatabaseConfiguration.dataSource(com.codahale.metrics.MetricRegistry)] threw exception; nested exception is java.lang.RuntimeException: fail-fast during pool initializationat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:188)at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:586)... 102 moreCaused by: java.lang.RuntimeException: fail-fast during pool initializationat com.zaxxer.hikari.pool.HikariPool.fillPool(HikariPool.java:505)at com.zaxxer.hikari.pool.HikariPool.

我在IntelliJ IDE中配置了sql连接,因此问题不存在.
我还生成了两个具有1-1关系的实体(其次是由jhipster提出的实现所有者).

当我将项目部署到Openshift时,它给了我起始页面等,但是在应用程序的“实体”菜单中 – 根本没有显示实体,菜单是空白的.所以,我认为问题出在项目本身的某个地方,或者可能是它的偏好.任何想法我应该怎么做来解决这个错误?

最佳答案将密码设置为”不是一种安全的做法. JHipster生成的应用程序需要在几个地方使用MysqL密码.如果您正确设置,应用程序可以使用密码连接到数据库.

> liquibase插件的pom.xml(Maven)或liquibase.gradle(Gradle)
>在src / main / resources / config文件夹中的application-dev.yml和application-prod.yml中.

希望能帮助到你. 总结

以上是内存溢出为你收集整理的Jhipster – MySQL java.sql.SQLException:用户’root’@’localhost’拒绝访问(使用密码:NO)全部内容,希望文章能够帮你解决Jhipster – MySQL java.sql.SQLException:用户’root’@’localhost’拒绝访问(使用密码:NO)所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/sjk/1166642.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-01
下一篇 2022-06-01

发表评论

登录后才能评论

评论列表(0条)