jhipster

Error when starting jHipster application on heroku

不想你离开。 提交于 2019-12-12 05:59:34
问题 i'm using jhipster 4.5.6. I'm trying to run my application on heroku and i'm getting this error when executing this code on in main class: Environment env = app.run(args).getEnvironment(); 2017-06-24 17:35:32.293 ERROR 4 --- [ main] o.s.boot.SpringApplication : Application startup failed 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: Could not copy property 'password' from source to target; nested

Using Spring Boot's ENV variables from JHipster App

空扰寡人 提交于 2019-12-12 04:47:17
问题 I'm trying to figure out how to use the JhiConfigurationService from JHipster Angular App. I've managed to access the env variables using this service from the App after injecting the service into my Angular component but it only works if I'm logged in as an "admin" user. As soon as I switch to the normal user, the service won't return any values. I've found that there is an endpoint configuration for Spring Boot but in the existing application.yml configs there is nothing which would change

How to open my application j hipster without authentication

荒凉一梦 提交于 2019-12-12 04:26:36
问题 I have created my j hipster application called Bookstore.After running my application it will go authentication . i need not this authentication .if there is any way to open my application without j hipster log in page? 回答1: In the path "app/config" there is the class MicroserviceSecurityConfiguration.class Change the permissions there, in the case ("/api/**").Authenticated() for ("/api/**").permitAll() 回答2: Assuming you want to build an application that keeps JHipster admin features: Remove

JHIPSTER Registry and NODEJS eureka-js-client NullPointerException

▼魔方 西西 提交于 2019-12-12 04:13:40
问题 I would like to add a node.js server as a microservice application on jhipster-registry. I use eureka-js-client npm package You can find a node test project "zhudan/node-eureka" on github // ------------------ Eureka Config -------------------------------------------- var Eureka = require("eureka-js-client").Eureka; var client = new Eureka({ filename: 'eureka-client', cwd: __dirname }); client.logger.level('debug'); client.start(function(error){ console.log(error || 'complete'); }); // ------

AWS deployment failed - jhipster app - EBS

亡梦爱人 提交于 2019-12-12 04:08:08
问题 I have tried deploying my jhipster application in AWS Elastic BeanStalk by uploading the war directly. When the environment is created, i am getting this error. [Instance: i-08f7c9efd8b2c5476] Command failed on instance. Return code: 1 Output: (TRUNCATED).../util/SystemPropertyUtils.class Failed to execute '/usr/bin/unzip -o -d /var/app/staging /opt/elasticbeanstalk/deploy/appsource/source_bundle' Failed to execute '/usr/bin/unzip -o -d /var/app/staging /opt/elasticbeanstalk/deploy/appsource

How to bind Spring cloud config values to @ConfigurationProperties object?

这一生的挚爱 提交于 2019-12-12 04:06:14
问题 I am trying to populate a @ConfigurationProperties -annotated class with properties from a yaml file on my cloud config server (Jhipster registry, specifically). The application is connecting to the server and reading the correct file, as when either the server or the file is unavailable, I get an exception either for the missing host or an unexpected empty file. However, I cannot access any of the properties in the file. I am primarily trying to populate a @ConfigurationProperties object,

Spring MongoDB Repository works only in some cases

回眸只為那壹抹淺笑 提交于 2019-12-12 04:06:06
问题 I have a project based on jHipster (Java + MongoDB + AngularJS). I am using mongodb with Spring MongoDB repository for data persistance. Problem is that the same method in repository (called findOneByEntityId) works different in some cases. Case 1: Angular resource asks controller to fetch TermMap. Controller use method mentioned above. Result is success. Case 2: DataMapFactory tries to use the same method with the same parameter and get NullPointerException. Result is failure. Case 3: I've

Error on jhipster:upgrade

柔情痞子 提交于 2019-12-12 03:51:46
问题 When I try to upgrade version of jhipster in my application I get following error: lothrimond@lothrimond-K53SD:~/workspace/NScanner$ npm list generator-jhipster n-scanner@0.0.0 /home/lothrimond/workspace/NScanner └── generator-jhipster@3.6.1 lothrimond@lothrimond-K53SD:~/workspace/NScanner$ yo jhipster:upgrade Welcome to the JHipster Upgrade Sub-Generator This will upgrade your current application codebase to the latest JHipster version Looking for latest generator-jhipster version... /home

JHipster: jhi-alert-error element and server side form validation?

爷,独闯天下 提交于 2019-12-12 03:47:58
问题 I am using JHipster 3.3. In the generated "entity"-dialog.html, I noticed the tag jhi-alert-error element will display server validation error so for example if a field is mandatory as specified in entity JPA class like @NotNull private String name; Then error message for that field will be returned after clicking the Submit button if value of the field is empty. So questions: How is jhi-alert-error implemented? I can't seem to see its implementation I tried tweaking JPA annotation to make a

Combine 2 angular pages in Jhipster Application

主宰稳场 提交于 2019-12-12 03:08:54
问题 I have simple jhipster application and generate 2 entities: Product and Category as showing here. The generator create pages to list Product and Category data respectively. Now, let say I want to create new page that combine these 2 pages in single page: combined.html <div> <jhi-alert></jhi-alert> <div class="container-fluid"> <uib-tabset> <uib-tab index="0" heading="Category"> <div>Categories Goes Here..</div> </uib-tab> <uib-tab index="1" heading="Product"> <div>Products Goes Here..</div> <