我使用 jhipster 创建了一个新项目并将其导入 Intellij。当我尝试创建一个新的角度组件时,出现错误。这是我所做的:
文件 >> 新建 >> Angular cli >> 组件 > ok。
我收到以下错误:
C:\Program Files\nodejs\node.exe" D:/TestareJhipster/Testare1/node_modules/@angular/cli\bin\ng generate component cacat 找不到新组件的 NgModule。使用跳过导入选项跳过在 NgModule 中导入组件。错误:找不到新组件的 NgModule。使用跳过导入选项跳过在 NgModule 中导入组件。完成
有没有另一种方法来创建组件?
我是 Jhipster 的新手。我尝试运行 mvnw 但发生连接拒绝的请求执行错误:连接。
2017-07-14 10:36:17.411 INFO 19864 --- [ restartedMain] com.netflix.discovery.DiscoveryClient : Saw local status change event StatusChangeEvent [timestamp=1500008777411, current=UP, previous=STARTING]
2017-07-14 10:36:17.946 INFO 19864 --- [ restartedMain] com.lxisoft.diviso.DivisoApp : Started DivisoApp in 27.953 seconds (JVM running for 29.457)
2017-07-14 10:36:17.961 INFO 19864 --- [ restartedMain] com.lxisoft.diviso.DivisoApp :
----------------------------------------------------------
Application 'diviso' is running! Access URLs:
Local: http://localhost:8080
External: http://192.168.43.43:8080
Profile(s): [swagger, dev]
----------------------------------------------------------
2017-07-14 10:36:17.978 INFO 19864 --- [ restartedMain] com.lxisoft.diviso.DivisoApp :
----------------------------------------------------------
Config Server: Not found or …Run Code Online (Sandbox Code Playgroud) 我无法在网络浏览器上打开 H2 控制台。我的 jhipster 应用程序在 8088 端口上运行。在服务器日志中,我发现 H2 数据库在端口 18088 上可用。
下面尝试过。 http://localhost:18088/h2-console
以下是 application-dev.yml 中的详细信息。
devtools:
restart:
enabled: true
additional-exclude: .h2.server.properties
livereload:
enabled: false # we use Webpack dev server + BrowserSync for livereload
jackson:
serialization:
indent-output: true
datasource:
type: com.zaxxer.hikari.HikariDataSource
url: jdbc:h2:mem:jhipstersampleapplication;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
username: jhipsterSampleApplication
password:
hikari:
poolName: Hikari
auto-commit: false
h2:
console:
enabled: true
jpa:
database-platform: io.github.jhipster.domain.util.FixedH2Dialect
database: H2
show-sql: true
properties:
hibernate.id.new_generator_mappings: true
hibernate.connection.provider_disables_autocommit: true
hibernate.cache.use_second_level_cache: true
hibernate.cache.use_query_cache: false
hibernate.generate_statistics: false
Run Code Online (Sandbox Code Playgroud)
这个你能帮我吗。
我尝试构建并运行jhipster注册表,但是我收到一个错误:
mvn package -Pprod
Run Code Online (Sandbox Code Playgroud)
我在测试中遇到以下错误:
Tests in error:
SwaggerBasePathRewritingFilterTest.<init>:20 » Unresolved compilation problem...
SwaggerBasePathRewritingFilterTest.<init>:20 » Unresolved compilation problem...
SwaggerBasePathRewritingFilterTest.<init>:20 » Unresolved compilation problem...
SwaggerBasePathRewritingFilterTest.<init>:20 » Unresolved compilation problem...
AccountResourceTest.setup:33 » NoClassDefFound HttpServletRequest
AccountResourceTest.setup:33 » NoClassDefFound HttpServletRequest
AccountResourceTest.setup:33 » NoClassDefFound HttpServletRequest
AccountResourceTest.setup:33 » NoClassDefFound HttpServletRequest
UserJWTControllerTest.setup:39 » NoClassDefFound HttpServletResponse
UserJWTControllerTest.setup:39 » NoClassDefFound HttpServletResponse
UserJWTControllerTest.setup:39 » NoClassDefFound HttpServletResponse
ExceptionTranslatorTest.setup:37 » NoClassDefFound HttpServletRequest
ExceptionTranslatorTest.setup:37 » NoClassDefFound HttpServletRequest
ExceptionTranslatorTest.setup:37 » NoClassDefFound HttpServletRequest
ExceptionTranslatorTest.setup:37 » NoClassDefFound HttpServletRequest
ExceptionTranslatorTest.setup:37 » NoClassDefFound HttpServletRequest
Run Code Online (Sandbox Code Playgroud)
如果我跳过测试,构建就可以了,但是当我启动时遇到了同样的错误:
./mvnw -Pdev
2018-02-16 …Run Code Online (Sandbox Code Playgroud) 我有一个基于微服务的JHipster应用程序,并已使用kubernetes子生成器生成了Kubernetes部署脚本。
我已将应用程序部署到Azure AKS,并使其运行顺利。它运行的当前配置文件是“ prod”。我如何更改活动配置文件的“开发”以查看详尽的文档?
我正在使用 jhipster 4.5.6。我正在尝试在 heroku 上运行我的应用程序,在主类中执行此代码时出现此错误:
环境 env = app.run(args).getEnvironment();
2017-06-24 17:35:32.293 ERROR 4 --- [ main] osboot.SpringApplication : 应用程序启动失败 2017-06-24T17:35:32.294416+00:00 app[web.1]: 2017-06-24T17 :35:32.294418 + 00:00 app [web.1]:org.springframework.beans.FatalBeanException:无法将属性“密码”从源复制到目标;嵌套异常是 java.lang.reflect.InitationTargetException
这是不好的做法,以及在jhipster堆栈中拥有多个网关应用程序可能带来的后果.
我正在开发一个具有非常不同的用户部分和管理部分的应用程序.我们的想法是拥有2个网关,一个用于用户Web应用程序,另一个用于管理Web应用程序.他们两个都有自己的微服务作为后端.此外,还有第三个包含常用功能的共享微服务.
所以它看起来像这样:
user web app (gateway) admin web app (gateway)
\ /
\ /
user microservice admin microservice
\ /
\ /
shared microservice
Run Code Online (Sandbox Code Playgroud)
我用简单的例子尝试了它,它似乎在开发环境中工作.除此之外它不优雅,还有其他原因导致这种架构不正确.