出现不满意的PendencyException org.springframework.beans.factory问题

ozxc1zmp  于 2021-07-08  发布在  Java
关注(0)|答案(1)|浏览(439)

microsoft windows[版本10.0.18362.1016](c)2019 microsoft corporation。版权所有。

G:\mymobile\app>jhipster info
             INFO! Using JHipster version installed locally in current project's node_modules
             INFO! Executing jhipster:info
             INFO! Options: from-cli: true
             Welcome to the JHipster Information Sub-Generator

              #####**JHipster Version(s)**
oauth-2@0.0.1-SNAPSHOT G:\mymobile\app
             `-- generator-jhipster@6.4.1

##### **JHipster configuration, a `.yo-rc.json` file generated in the root folder**

       <details>
       <summary>.yo-rc.json file</summary>
       <pre>
        {
         "generator-jhipster": {
            "databaseType": "sql",
            "devDatabaseType": "h2Disk",
            "enableHibernateCache": true,
            "enableSwaggerCodegen": false,
            "enableTranslation": true,
            "jhiPrefix": "jhi",
            "languages": ["en", "fr"],
            "messageBroker": false,
            "nativeLanguage": "en",
            "packageName": "com.mycompany.myapp",
            "packageFolder": "com/mycompany/myapp",
            "prodDatabaseType": "mysql",
            "searchEngine": false,
            "serviceDiscoveryType": false,
            "skipClient": false,
           "skipServer": false,
            "testFrameworks": ["protractor"],
            "websocket": false,
            "baseName": "oauth2",
           "authenticationType": "oauth2",
           "buildTool": "gradle",
           "jhipsterVersion": "6.4.1",
            "skipUserManagement": true,
           "clientPackageManager": "npm",
           "applicationType": "monolith",
           "cacheProvider": "ehcache",
           "clientFramework": "angularX",
           "clientTheme": "none",
           "clientThemeVariant": "",
           "serverPort": "8080",
           "useSass": true,
           "embeddableLaunchScript": false,
            "entitySuffix": "",
            "dtoSuffix": "DTO",
            "otherModules": [],
            "blueprints": []
                                },
              "entities": []
                                 }

              </pre>
           </details>

           #####**JDL for the Entity configuration(s) `entityName.json` files generated in the        `.jhipster` directory**

           <details>
          <summary>JDL entity definitions</summary>

           <pre>
           entity Album {
            title String required,
            description TextBlob,
            created Instant
           }
            entity Photo {
                 title String required,
                 description TextBlob,
                 image ImageBlob required,
                  taken Instant
                   }
            entity Tag {
                   name String required minlength(2)
                        }
             relationship ManyToOne {
              Album{user(login)} to User,
              Photo{album(title)} to Album
                }
              relationship ManyToMany {
              Photo{tag(name)} to Tag{photo}
                }

               paginate Album with pagination
               paginate Photo, Tag with infinite-scroll

              </pre>
             </details>

             #####**Environment and Tools**

            openjdk version "11.0.8" 2020-07-14
            OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.8+10)
            OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.8+10, mixed mode)

            node: v12.18.3

             npm: 6.14.6

             yeoman: 3.1.1

             Docker version 19.03.1, build 74b1e89e8a

            docker-compose version 1.24.1, build 4667896b

           INFO! Congratulations, JHipster execution is complete!

           G:\mymobile\app>docker-compose -f src/main/docker/keycloak.yml up -d
           docker_keycloak_1 is up-to-date

---已开发堆栈跟踪------上下文初始化期间遇到异常-取消刷新尝试:org.springframework.beans.factory.unsatifieddependencyException:使用文件[g:\mymobile\app\build\classes\java\main\com\mycompany\myapp\config\securityconfiguration.class]中定义的名称“securityconfiguration”创建bean时出错:通过构造函数参数3表示的不满足依赖关系;嵌套异常为org.springframework.beans.factory.unsatifieddependencyException:创建名为“org.zalando.problem.spring.web.advice.security.securityproblemsupport”的bean时出错:通过构造函数参数0表示的未满足的依赖关系;嵌套异常为org.springframework.beans.factory.unsatifieddependencyException:创建名为“org.springframework.boot.autoconfigure.web.servlet.webmvcautoconfiguration$enablewebmvcconfiguration”的bean时出错:通过方法“setconfigurers”参数0表示的未满足的依赖关系;嵌套异常为org.springframework.beans.factory.unsatifieddependencyException:创建名为“org.springframework.security.config.annotation.web.configuration.oauth2clientconfiguration$oauth2clientwebmvcsecurityconfiguration”的bean时出错:通过方法“setclientregistrationrepository”参数0表示的未满足的依赖关系;嵌套异常为org.springframework.beans.factory.beancreationexception:创建名为'clientregistrationrepository'的bean时出错,该bean在类路径资源[org/springframework/boot/autoconfigure/security/oauth2/client/servlet/oauth2clientregistrationrepositoryconfiguration.class]中定义:通过工厂方法示例化bean失败;嵌套异常为org.springframework.beans.beaninstantiationexception:未能示例化[org.springframework.security.oauth2.client.registration.inmemoryclientregistrationrepository]:工厂方法“clientregistrationrepository”引发异常;嵌套异常为java.lang.illegalargumentexception:无法使用提供的颁发者“”解析openid配置http://localhost:9080/auth/realms/jhipster“

d7v8vwbk

d7v8vwbk1#

看起来您还没有启动keydepot(jhipster带来了可以使用的keydepot配置)。该应用程序试图在 localhost:9080 .
如果安装了docker和docker compose,则可以使用提供的docker compose配置并通过 docker-compose -f src/main/docker/keycloak.yml up 如果您想手动启动它,您需要确保在您的keydepot示例中设置jhipster领域。

相关问题