jhipster

JHipster, Spring Social & Principal

夙愿已清 提交于 2019-12-11 09:05:45
问题 This question was migrated from Super User because it can be answered on Stack Overflow. Migrated 2 years ago . Dears, I have generated an app thanks to jHipster. However, in order to be sure that I map social profiles with local accounts, I want users to sign up their social accounts once connected only. Social Connection must be optional (users' convenience). In brief, I want to use JWT tokens to sign up social profiles and either JWT or oAuth to signin when activated. Technically, I

Main class not found when using Manifest jar with JavaExec in Gradle

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 08:56:57
问题 I have the below gradle script from the Jhipster framework. It is used to run Gatling tests and due to the command line limit on windows I have tried using a manifest only jar approach. A detailed discussion regarding this can be found here Jhipster issue But the below script seems to generate the Manifest jar properly but JavaExec is unable to find the main class, some pointer on this would be really helpfull. A console log of error is below as well I have posted this on the gradle forum

Use hibernate entities from external jar

梦想与她 提交于 2019-12-11 08:45:12
问题 I have created jhipster microservice application, in which i have added a "demographics.jar" file as a dependency. demographics.jar file contains a class "Address.java" which is JPA entity. when i refer this class from my code, it generated following error org.hibernate.AnnotationException: @OneToOne or @ManyToOne on com.example.jobcard.domain.JobCard.location references an unknown entity: com.example.geographics.domain.Address at org.hibernate.cfg.ToOneFkSecondPass.doSecondPass

Yarn package won't upgrade globally (after migrating from NPM)

帅比萌擦擦* 提交于 2019-12-11 07:59:46
问题 I was trying to run yarn global upgrade generator-jhipster but even though it seemed like it was working and installing the latest version, when I would run yo jhipster It would still be on an old version and would prompt me to run yarn global upgrade generator-jhipster I was running on OSX (Mac) I had just recently started using Yarn. I was previously using NPM but uninstalled NPM. $HOME/.config/yarn/global/node_modules/.bin was in my path, so that wasn't the issue. 回答1: When I switched over

JHipster (Spring, Angular), Vagrant - empty replay from server

两盒软妹~` 提交于 2019-12-11 06:52:15
问题 I configured demo-spring-cas-angular to work on port 8081. When I run it on my machine (OSX) it works very well. I have problem when it is run inside vagrant. Port 8081 is forwarded config.vm.network "forwarded_port", guest: 8080, host: 8080 config.vm.network "forwarded_port", guest: 8081, host: 8081 config.vm.network "forwarded_port", guest: 8761, host: 8761 config.vm.network "forwarded_port", guest: 5432, host: 5432 config.vm.network "forwarded_port", guest: 3306, host: 3306 config.vm

Jhipster generator skip auth code at --skip-server

余生颓废 提交于 2019-12-11 06:15:30
问题 Why when we generate project with '--skip-server' yo jhipster --skip-server part of authentication is lost. (on AJS/A2).It's right? Everytime i need to paste part code (AuthServerProvider on Angular or authExpiredInterceptor on AngularJS) for working home page 回答1: Because you did not specify which authentication type you want with --auth option. See the doc or run jhipster client --help . So in your case, you should run: jhipster client --auth=jwt for JWT authentication or the one you want.

ng-jhipster development creates compilation errors

戏子无情 提交于 2019-12-11 05:55:58
问题 I face the following problem. I cannot test the ng-jhipster module. Steps followed: ng-jhipster: - yarn link - yarn install ( all the steps have been executed correctly) My project: - yarn link ng-jhipster - yarn start ERROR in [at-loader] ./src/main/webapp/app/blocks/interceptor/errorhandler.interceptor.ts:5:14 TS2415: Class 'ErrorHandlerInterceptor' incorrectly extends base class 'HttpInterceptor'. Types of property 'requestIntercept' are incompatible. Type '(options?: RequestOptionsArgs) =

Jhipster yo jhipster is not updating existing project

半腔热情 提交于 2019-12-11 05:54:45
问题 I have created a project using Jhipster v4.0.5. Now have upgraded generator-jhipster to latest one i.e. v4.0.7 and tried to upgrade my existing project manually. But upgrade is not happening because no single file is changed after using command yo jhipster or yo jhipster --with-entities . Have confirmed this through '.yo-rc.json', it is still showing {"jhipsterVersion": "4.0.5"} . Does anyone know fix for this issue ? 回答1: You're probably using the generator-jhipster in your project's node

IBM Bluemix enforcing https on spring boot application(Jhipster generated)

瘦欲@ 提交于 2019-12-11 05:28:37
问题 I need to enforce https on spring-boot application(jhipster generated) deployed on IBM Bluemix.I am deploying spring-boot war without embedded tomcat, the documentation for cloudfoundry specified that the java build pack itself provides Tomcat configured with a RemoteIPValve, so I need not to add below headers as specified by many answers on StackoverFlow. server.tomcat.remote_ip_header=x-forwarded-for server.tomcat.protocol_header=x-forwarded-proto I have also added below code in security

JHipster Entity sub generator - no properties in common with type 'Component'

落花浮王杯 提交于 2019-12-11 05:14:53
问题 I am having issues using the "entity" sub generator when attempting to update an existing entity. When running the generator, at the end of the process, the following command is run: yarn run cleanup && yarn run webpack:build:main During this process I get these errors: ERROR in [at-loader] dummy/path/car-delete-dialog.component.ts:58:23 TS2559: Type 'typeof CarDeleteDialogComponent' has no properties in common with type 'Component'. ERROR in [at-loader] ./dummy/path/car-dialog.component.ts