问题描述
@H_502_0@ Microsoft Windows [版本10.0.18362.1016]
(c)2019 Microsoft公司。保留所有权利。
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 @R_950_4045@ion Sub-Generator
##### **JHipster Version(s)**
[email protected] G:\mymobile\app
`-- [email protected]
##### **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,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
@H_502_0@-开发了堆栈跟踪------ 上下文初始化期间遇到异常-取消刷新尝试:org.springframework.beans.factory.UnsatisfiedDependencyException:创建文件[G:\ mymobile \ app \ build \ classes \ java \ main \ com \ mycompany中定义的名称为'securityConfiguration'的bean时出错\ myapp \ config \ SecurityConfiguration.class]:通过构造函数参数3表示的不满意依赖关系;嵌套的异常是org.springframework.beans.factory.UnsatisfiedDependencyException:创建名称为org.zalando.problem.spring.web.advice.security.SecurityProblemSupport的bean时出错:通过构造函数参数0表示的不满足的依赖关系;嵌套的异常是org.springframework.beans.factory.UnsatisfiedDependencyException:创建名称为“ org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration $ EnableWebMvcConfiguration”的bean时出错:通过方法“ setConfigurers”参数0表示的不满足的依赖关系;嵌套的异常是org.springframework.beans.factory.UnsatisfiedDependencyException:创建名称为“ org.springframework.security.config.annotation.web.configuration.oauth2clientConfiguration $ oauth2clientWebMvcSecurityConfiguration”的bean时出错:通过方法“ setClientRegistrationRepository”参数0表示的不满意依赖关系;嵌套的异常是org.springframework.beans.factory.BeanCreationException:在类路径资源[org / springframework / boot / autoconfigure / security / oauth2 / client / servlet / oauth2clientRegistrationRepositoryConfiguration.class]中创建名称为“ clientRegistrationRepository”的bean时出错。通过工厂方法失败;嵌套的异常是org.springframework.beans.BeanInstantiationException:无法实例化[org.springframework.security.oauth2.client.registration.InMemoryClientRegistrationRepository]:工厂方法“ clientRegistrationRepository”引发了异常;嵌套的异常是java.lang.IllegalArgumentException:无法使用提供的Issuer为“ http:// localhost:9080 / auth / realms / jhipster”来解析OpenID配置
解决方法
您似乎尚未启动keycloak(jhipster已准备好使用keycloak配置)。该应用程序尝试访问localhost:9080
上的密钥斗篷。
如果已安装docker和docker-compose,则可以使用提供的docker-compose配置并通过docker-compose -f src/main/docker/keycloak.yml up
启动密钥斗篷
如果要手动启动它,则需要确保在密钥斗篷实例中设置jhipster领域。