jhipster

How to use JHipster and Hibernate Envers

霸气de小男生 提交于 2019-12-03 22:12:59
I am having trouble figuring out how to use Hibernate Envers and JHipster. I am using PostgreSQL to store the data, and latest Jhipster 2.6.0 I just generated a JHipster application, with no modifications at all. The User domain class extends the AbstractAuditingEntity class, which has the @Audited annotation, but when editing a user there's no t_user_aud table created in the database. Is there any configuration needed in order to have Hibernate Envers saving modifications ? I've got a github repository that shows how to add it for postgres for jhipster 2.6.0 Once you have your jhipster app

How to include 3rd party library that uses older import approach to Angular4.x?

巧了我就是萌 提交于 2019-12-03 20:11:34
What is the proper workflow to include the library to angular 4.0 and use it inside a component? My steps: yarn add mathjs Then there should be a way to injects js libraries in one of the build lifecycles so the angular4 component can use it. JHipster utilizes Webpack and Yarn. Then I tried to add to Component ( docs ): import { mathjs } from "./mathjs"; and var math = require('mathjs'); Those were not working. What am I missing? UPDATE: It seems like mathjs uses older approach suggesting var math = require('mathjs') . Maybe it is similar to JQuery question in some way... UPDATE2 Richard

JHipster 5 availability

一个人想着一个人 提交于 2019-12-03 16:25:13
Is JHipster 5 (with Spring Boot 2) available to play around with? I've noticed that there is mention about work on JHipster 5 in the release notes, but can't see any info on how to install/run a 'preview' version of 5. You can use directly the master version, no need to wait for a release: git clone https://github.com/jhipster/generator-jhipster cd generator-jhipster yarn install yarn link Then, when you want to generate a new project, using master branch: mkdir newapp cd newapp yarn link generator-jhipster jhipster Don't forget to update regularly the master branch, as the community is very

jhipster oauth2 client secret

。_饼干妹妹 提交于 2019-12-03 15:03:46
问题 I've been experimenting with jhipster. I've configured my app to work with oauth2. For that purpose I have a client secret in my application.yml According to several articles I have found on this topic, the client secret should be kept secret at all times. For example, check https://aaronparecki.com/articles/2012/07/29/1/oauth2-simplified The client secret must be kept confidential. If a deployed app cannot keep the secret confidential, such as Javascript or native apps, then the secret is

JHipster - Log Files

空扰寡人 提交于 2019-12-03 13:27:44
问题 I have a JHipster application running and I would like to know where are the logs files. Where are they generated ? (It's a newbie question, but can't find anything) I am on the "Dev" profile with the default configuration. (Didn't change anything regarding the application-dev.yml) Thanks. 回答1: The default jh configuration src\main\resourcess\logback-spring.xml: <?xml version="1.0" encoding="UTF-8"?> <configuration scan="true"> <include resource="org/springframework/boot/logging/logback/base

OAuth2 SSO for multiple resource servers with spring boot and jHipster

為{幸葍}努か 提交于 2019-12-03 12:53:24
问题 So, I have an oAuth2 app which is jHipster app (using mongodb). I want to connect 3 resource apps to that app but all of them should share the same user base, so that the users should be able to login only once. Is there a way to configure multiple resources in Spring Boot with jHipster so that it won't be as a separate client that would need username and password before accessing the resource? And also how can I specify user role for each resource server? All of the app are based on spring

Error: ENOENT: no such file or directory, scandir

时间秒杀一切 提交于 2019-12-03 10:27:11
问题 I scaffold an app using jhipster which is microservice gateway using cassandra db and using maven to build which was building fine after scaffold.i ran gulp command to for the live reload of ui. i made a change slighlty in navbar and home page of it. which was also working file & made some changes in the json files of home & navbar & do some minor changes as adding the search box and other. it failed to reload. I stop the gulp & maven & restarted them. maven is building but again not loading

how to run more than one angular directive modules on Pprod

大兔子大兔子 提交于 2019-12-03 09:32:07
I am working on jhipster Release 0.7.0 and I have multiple type of directive modules in our jhipster app.first for index page and second for commmon directive. When we run on Prod profile i got an exception :- [31mPhantomJS 1.9.7 (Windows 7) ERROR[39m Error: [$injector:nomod] Module 'common-services' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument. http://errors.angularjs.org/1.2.11-build.2192+sha.e2173f9/ $injector/nomod?p0=common-services at D:/github_repo/gather-our-code/src

JHipster: Filtering entities with criteria - intended Angular client-side approach

☆樱花仙子☆ 提交于 2019-12-03 07:47:40
I've recently started using JHipster - thanks to the maintainers for this fantastic project! In the current version of JHipster (4.10.2 at the time of writing), entities can have filtering enabled via the entity sub-generator, or by including filter EntityName and service EntityName with serviceClass to the project's JDL file. This produces a Spring project in which the getAllEntities() method in the EntityNameResource class takes a Criteria argument constructed from the URL GET params. This works out-of-the box with the Swagger UI generated for the endpoint, and the queries issued by this UI

Unable to register MBean [HikariDataSource (HikariPool-0)] with key 'dataSource'

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-03 06:44:13
问题 I am getting below error in prod mode for (Java8+Oauth2+MySql+Hazelcast+no clustered http sessions) combination. Dev mode has worked fine. Unable to register MBean [HikariDataSource (HikariPool-0)] with key 'dataSou rce'; nested exception is javax.management.InstanceAlreadyExistsException: com.z axxer.hikari:name=dataSource,type=HikariDataSource In the log, first part of the datasource (hazelcast) creation says [dev] mode. Not sure this is deliberate. Kindly help me in resolving the issue.