jhipster

jhipster client side pass entity filter to server side?

六眼飞鱼酱① 提交于 2020-02-03 10:23:08
问题 After reading http://www.jhipster.tech/entities-filtering/, I can get my jhipster generated applicaiton filter work on postman. For example I can get right result on postman with: http://localhost:8080/api/requests?page=0&size=20&sort=model,asc&sort=id&id.in=20000,20001 my questions how can make it work on the generated angular client side app? I saw that in the ../shared folder it has "request-util.ts". Inside it, there is parameter named "query" and "filter". export const

jhipster client side pass entity filter to server side?

狂风中的少年 提交于 2020-02-03 10:21:30
问题 After reading http://www.jhipster.tech/entities-filtering/, I can get my jhipster generated applicaiton filter work on postman. For example I can get right result on postman with: http://localhost:8080/api/requests?page=0&size=20&sort=model,asc&sort=id&id.in=20000,20001 my questions how can make it work on the generated angular client side app? I saw that in the ../shared folder it has "request-util.ts". Inside it, there is parameter named "query" and "filter". export const

jhipster client side pass entity filter to server side?

和自甴很熟 提交于 2020-02-03 10:21:11
问题 After reading http://www.jhipster.tech/entities-filtering/, I can get my jhipster generated applicaiton filter work on postman. For example I can get right result on postman with: http://localhost:8080/api/requests?page=0&size=20&sort=model,asc&sort=id&id.in=20000,20001 my questions how can make it work on the generated angular client side app? I saw that in the ../shared folder it has "request-util.ts". Inside it, there is parameter named "query" and "filter". export const

How to drop in-memory h2db between Spring Integration tests?

送分小仙女□ 提交于 2020-02-02 03:06:28
问题 I am using Liquibase in my Spring web application. I have a bunch of entities with hundreds of tests for REST APIs in the integration tests for each entity like User, Account, Invoice, License etc. All of my integration tests pass when run by class but a lot of them fail when ran together using gradle test . It is very likely there is data collision between the tests and I am not interested in spending time to fix clean up data as of now. I prefer dropping the DB and context after every class

JHipster: How to call a controller function from a button, without submitting the form its in

可紊 提交于 2020-01-25 20:44:52
问题 I'm trying to call a controller function when I click a button, but nothing happens. The function itself doesn't even trigger. Here is my code: HTML <form name="editForm" id="nameForm" class="fruit-form" role="form" novalidate ng-submit="vm.save()" show-validation> <button type="button" class="close" ng-click="vm.test()">Test</button> <div ng-repeat="fruit in fruits"> {{fruit}} </div> <button type="submit"></button> </form> Controller (function() { 'use strict'; angular.module('testApp')

unable to deploy to heroku since jhipster update

让人想犯罪 __ 提交于 2020-01-25 07:37:10
问题 I upgrade my project from jhipster 5.8.2 to 6.5.1. All works fine in develop mode, on my Windows computer Now, I try to deploy on my Test heroku platform, but I have an exception : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is java.lang.RuntimeException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name

Spring Security multiple UserDetailsService

百般思念 提交于 2020-01-23 17:41:26
问题 I have 3 different table and every table have users information. (Maybe same username but different password) Also, have 3 different URL for authorization. Is it possible to use multiple UserDetailsService with one configuration and during authorization control which table to use? Here is my configuration code but I can't control which table to use during authorization: @Configuration @EnableWebSecurity @EnableGlobalMethodSecurity(prePostEnabled = true, securedEnabled = true) @Import

Stateless Spring JWT Application + EnableOAuth2Client

為{幸葍}努か 提交于 2020-01-23 17:18:25
问题 I'm 50+ hours deep on this solution and would appreciate any input. I have a JHipster 4.x generated application using Angular + Spring + JWT stateless authentication (myApp). I am wiring up a 3rd party OAuth 2 interface (battle.net) for authenticated myApp users to OAuth against battle.net so we can prove they own the battle.net account and pull their battle.net user id so the accounts are linked in myApp. So JWT southbound, OAuth2 northbound. JWT works fine and OAuth appears to work fine. I

Stateless Spring JWT Application + EnableOAuth2Client

故事扮演 提交于 2020-01-23 17:18:06
问题 I'm 50+ hours deep on this solution and would appreciate any input. I have a JHipster 4.x generated application using Angular + Spring + JWT stateless authentication (myApp). I am wiring up a 3rd party OAuth 2 interface (battle.net) for authenticated myApp users to OAuth against battle.net so we can prove they own the battle.net account and pull their battle.net user id so the accounts are linked in myApp. So JWT southbound, OAuth2 northbound. JWT works fine and OAuth appears to work fine. I

Environment-based properties for Angular 2 App Served by Webpack?

老子叫甜甜 提交于 2020-01-21 09:51:07
问题 I'm working with a standalone Angular console generated by JHipster and served by a Spring Boot server. I am looking to serve up the app with different properties based on the environment (local, dev, prod, etc). I see a lot of posts about configuring the webpack build per-environment, but I need to specify URLs and other data into my Angular 2 4.x app directly- data that changes whether I am running the app in dev or in production. Is this type of per-environment configuration possible when