jhipster

How to add DatePicker at JHipster UI

孤者浪人 提交于 2019-12-01 09:12:36
I want to modify one of JHipster entity page to use DatePicker . I Have include dependencies over Bower, add js library url to index page. I'm not sure how to include bootstrap css, should I use compass or something else? Or do you maybe know better library for UI. I added it to my project using WebJars: <dependency> <groupId>org.webjars</groupId> <artifactId>bootstrap-datepicker</artifactId> <version>1.3.1</version> </dependency> Then I use class="date" on my date fields and use the following HTML/JS to initialize the field. <link rel="stylesheet" type="text/css" media="all" href="/webjars

i18n of lazy-loaded components in JHipster app

房东的猫 提交于 2019-12-01 08:07:31
问题 My App is based on JHipster and so the language services are provided by way of JhiLanguageService in the ng-jhipster library which uses a JhiConfigService to configure ngx-translate without my needing to import and configure the TranslateModule in my app.module . So when I add TranslateModule.forRoot(...) to imports of AppModule, everything breaks and I just see "translation not found..." messages everywhere. I don't know how to make my lazy-loaded pages use the same translation service

Nested angular components in projects with multiple modules like JHipster

倾然丶 夕夏残阳落幕 提交于 2019-12-01 07:44:08
问题 I'm trying to show an entity component in another Entity component. I found some information about shared modules online, I also checked this post but it's still not working for me. 回答1: Well, it gets a little bit complicated when you have multiple modules in your project. In a project like the ones generated by JHipster there are several modules in the project. But no worries, the solution is easy: Assuming the entity component supposed to get displayed inside another component is

Jhipster / md-button is not a known element

不问归期 提交于 2019-12-01 07:05:11
Hello I am using JHipster 4.0.1 I want integrate angular 2 material into my home.component. I did : npm install material npm install angular2/{core,button} <html><head></head> <body> <md-button>Hello </md-button></body></html> the error is : md-button is not a known element Gaël Marziou For those using yarn rather than npm: yarn add --exact @angular/material yarn start Import angular material module into src/main/webapp/app/shared/shared-libs.module.ts : import { MaterialModule } from '@angular/material'; @NgModule({ imports: [ MaterialModule, ... ], exports: [ MaterialModule, ... Add a theme

Can't build maven jhipster project with lombok

☆樱花仙子☆ 提交于 2019-12-01 07:03:47
问题 ./mvnw and mvn clean install fail when adding lombok dependency but run successfully when launched from Intellij IDE Find the error below : INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] src/main/java/web/rest/core/service/impl/ProductServiceImpl.java:[18,29] cannot find symbol symbol: method builder() location: class com.test.one.web.rest.core.model.Product Here is

How to add DatePicker at JHipster UI

别等时光非礼了梦想. 提交于 2019-12-01 05:51:57
问题 I want to modify one of JHipster entity page to use DatePicker. I Have include dependencies over Bower, add js library url to index page. I'm not sure how to include bootstrap css, should I use compass or something else? Or do you maybe know better library for UI. 回答1: I added it to my project using WebJars: <dependency> <groupId>org.webjars</groupId> <artifactId>bootstrap-datepicker</artifactId> <version>1.3.1</version> </dependency> Then I use class="date" on my date fields and use the

Jhipster + REST client + authentication

痴心易碎 提交于 2019-12-01 05:19:47
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 I don't understand how to get the session token simply authenticating as I do on a web browser.

Jhipster / md-button is not a known element

泪湿孤枕 提交于 2019-12-01 04:20:46
问题 Hello I am using JHipster 4.0.1 I want integrate angular 2 material into my home.component. I did : npm install material npm install angular2/{core,button} <html><head></head> <body> <md-button>Hello </md-button></body></html> the error is : md-button is not a known element 回答1: For those using yarn rather than npm: yarn add --exact @angular/material yarn start Import angular material module into src/main/webapp/app/shared/shared-libs.module.ts : import { MaterialModule } from '@angular

How to make Spring Security accept JSON instead of form parameters?

南楼画角 提交于 2019-12-01 01:54:37
问题 I'm trying to change JHipster so it uses a JSON object for authentication instead of form parameters. I've managed to make this work for its JWT authentication mechanism. Now I'd like to do it for other authentication options. Is there an easy way to change Spring Security's default security configuration to allow this? Here's what JHipster uses now: .and() .rememberMe() .rememberMeServices(rememberMeServices) .rememberMeParameter("remember-me") .key(env.getProperty("jhipster.security

Angular HTTP Error Empty Untyped Response

≡放荡痞女 提交于 2019-11-30 16:44:20
问题 I have an Angular/JHipster application that makes HTTP calls. I want to do error handling in my Observable subscriptions. However, when the first time the error handler is invoked, the err object is not a response, it's a raw {} Object . All subsequent error handler invocations have a valid Response . Why is this happening, and how do I fix it? MyComponent.ts: handleClickPost() { this.myService.doPost(this.body) .subscribe( (res: Response) => { this.responseOk = true; }, (err: Response) => {