jhipster

JHipster 5 availability

纵然是瞬间 提交于 2020-01-01 06:35:50
问题 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. 回答1: 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

JHipster Generator v4.14 is not showing option of React

人走茶凉 提交于 2019-12-31 02:08:43
问题 While creating an app using JHipster, it is not showing React option for question "Which Framework would you like to use for the client?" 回答1: In v4.14.x, React support is still “experimental”, so you need to run jhipster --experimental to enable React support. But no work has been done for React in v4.14.x the last weeks, so you should use the Generator JHipster v5.0.0-beta.1 instead. 来源: https://stackoverflow.com/questions/50233278/jhipster-generator-v4-14-is-not-showing-option-of-react

Where and How To Define An Application Property? - JHIpster

这一生的挚爱 提交于 2019-12-31 00:28:47
问题 In Spring Boot, an application property can be defined in application.properties file. For example, a prefix of Rest can be defined as spring.data.rest.basePath=api For JHipster which is based on Spring Boot, I guess that an application property could defined in the application.yml file. But none of the follow approach work for me: a 404 error. spring.data.rest.basePath: api spring: data: rest: basePath: api The other possibility is the configuration itself doesn't work. 回答1: I have same

Jhipster + REST client + authentication

倾然丶 夕夏残阳落幕 提交于 2019-12-30 09:34:08
问题 I need to understand how to authenticate a REST client (could be Paw, could be an android app, an iOs app using AFNetworking with jHipster and I think, more in general, with spring-boot of which I am no expert). While I am able to obtain a token when logged in a browser, and subsequently use this token in the following requests, I do not understand how I can authenticate in the first place using RESTful best practices. For example, in Paw.app, I can pass a Basic authentication, or Oauth2, but

JHipster: Registering a user with additional information

坚强是说给别人听的谎言 提交于 2019-12-28 12:44:09
问题 First of all, I'd like to thank " Paul Etienne " for his helpful question and answer! The answer bellow is a little bit more detailed and has been written considering the last version of JHipster (3/17/2018). The question is clear: how to add new data field(s) to User entity in a JHipster project. 回答1: As it's mentioned in the official JHipster website, the best way to add new fields/relations to the default JHipster User is creating a new Entity and link it to User with a one-to-one

Enable Https in JHipster Project which Uses KeyCloak

故事扮演 提交于 2019-12-25 18:28:47
问题 I have a similar question, which was poorly written by me and so now I put the question in a clearer way hopefully: I have generated a project using Jhipster and Keycloak (follow this tutorial: https://developer.okta.com/blog/2018/06/25/react-spring-boot-photo-gallery-pwa). It works fine until I want to turn on https. So say in the keycloak admin panel, I choose 'all request need https'. And then when I login, I get an error page saying "https required". My question is, what exactly should I

Jhipster Angular 2 Lazy Loading Module Not found Exception

梦想与她 提交于 2019-12-25 08:59:48
问题 I created the Jhipster application and try to add the lazy loading module, which give the module not found exception. I follow the "https://jaseb.github.io/angular2-example/" article but still the same exception. I try myself. Please help me us to proceed further.Please find the code snippets as follows. app.route.ts import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import {NavbarComponent} from "./layouts/navbar/navbar.component"; export const

Setting up new default Roles in jhipster

情到浓时终转凉″ 提交于 2019-12-25 08:39:50
问题 How can I set up default roles in jhipster ? (using angularjs and spring). I explain myself in the registration page I want to specify the role for the registred user. let's say by a checkbox or a list. (for exemple human and animal ) How can I do that in the angular controller and in spring ? What I can do now ? I added the roles I need in the database and in angular and I can specify the roles for the new registred users , only through the Admin's users management page. 回答1: There is some

Jhipster extented user entity and account creation

我是研究僧i 提交于 2019-12-25 07:50:01
问题 I'm building a job finding website using Jhipster. Two of our main entities are ' candidate ' and ' headHunter ' They're both users of the app, so they both have account on the app. We decided to make each entities have a "one to one" relationship with User entity. On top of that, we created a ' userCustom ' entity to manage commons fields. This entity also have a "one to one" relationship with User. So when either a headHunter or a candidate create a new account on the website, i have to

has-authority not working on a button

亡梦爱人 提交于 2019-12-25 06:51:08
问题 So I used JHipster to generate my app. I could see the navbar using the has-authority directive to show/hide menus. Now what I would to do is to use the directive on a button to show it only to users with ROLE_ADMIN here's the code of the directive .directive('hasAuthority', ['Principal', function (Principal) { return { restrict: 'A', link: function (scope, element, attrs) { var setVisible = function () { element.removeClass('hidden'); }, setHidden = function () { element.addClass('hidden');