jhipster

How to insert data to table on spring boot application start?

拟墨画扇 提交于 2020-01-17 05:29:12
问题 How can I insert data to a table on Spring Boot application start? My application is generated by JHipster . What I need to check is that if that particular data already exist in that table or not. If it doesn't I should add it. 回答1: You can implement an ApplicationRunner and use a repository to do whatever you need to do. If the ApplicationRunner is a spring bean it is run on application startup. For more sophisticated requirements I would try to rely on a tool like flyway that has good

api/account redirect to login even after login jhipster

混江龙づ霸主 提交于 2020-01-16 20:07:17
问题 when i hit api/authentication jhispter found user and print but when i hit api/account then it print anonymous user. we have jhipster angular application up and running perfectly without any issue but we want to add react native application with jhipster backend. we are getting the issue on authentication and API/account API after successful login when I hit API/account or any custom API/** it failed because jhipster considers react-native user anonymous user. why jhipster considers an

api/account redirect to login even after login jhipster

半城伤御伤魂 提交于 2020-01-16 20:05:43
问题 when i hit api/authentication jhispter found user and print but when i hit api/account then it print anonymous user. we have jhipster angular application up and running perfectly without any issue but we want to add react native application with jhipster backend. we are getting the issue on authentication and API/account API after successful login when I hit API/account or any custom API/** it failed because jhipster considers react-native user anonymous user. why jhipster considers an

GET /api/account returns error when LDAP authentication is enabled in Jhipster uaa app

最后都变了- 提交于 2020-01-16 18:08:17
问题 Overview of the issue GET /api/account return 500 error when we have ldap integration in jhipster uaa, the user is present in ldap directory not in the uaa DB, therefore it return 500 error, no user found Motivation for or Use Case It is a doubt, so my question is should we add the user in DB after successful authentication from Ldap or do I need to update the API according to my requirement, which will be the solution. Reproduce the error Add embedded ldap configuration in uaa: @override

GET /api/account returns error when LDAP authentication is enabled in Jhipster uaa app

佐手、 提交于 2020-01-16 18:05:12
问题 Overview of the issue GET /api/account return 500 error when we have ldap integration in jhipster uaa, the user is present in ldap directory not in the uaa DB, therefore it return 500 error, no user found Motivation for or Use Case It is a doubt, so my question is should we add the user in DB after successful authentication from Ldap or do I need to update the API according to my requirement, which will be the solution. Reproduce the error Add embedded ldap configuration in uaa: @override

GET /api/account returns error when LDAP authentication is enabled in Jhipster uaa app

爷,独闯天下 提交于 2020-01-16 18:05:11
问题 Overview of the issue GET /api/account return 500 error when we have ldap integration in jhipster uaa, the user is present in ldap directory not in the uaa DB, therefore it return 500 error, no user found Motivation for or Use Case It is a doubt, so my question is should we add the user in DB after successful authentication from Ldap or do I need to update the API according to my requirement, which will be the solution. Reproduce the error Add embedded ldap configuration in uaa: @override

How to pass credentials for jenkins to push a docker image to my own registry?

痞子三分冷 提交于 2020-01-16 06:05:54
问题 JHipster now uses the maven-jib-plugin. Before that, my jenkins server running in a docker-container was able to build a docker image with the *.war-file and push it to my own docker-registry with a pipeline using a 'Jenkinsfile' (for gradle, but I switched to Maven now), and after job completion another job pulled the newly build docker-image into a new docker-container on my server by executing shell scripts on the remote host using ssh. The stages for this task were: def dockerImage stage(

Can I deploy a jhipster 5.0.0-beta.0 application in azure?

主宰稳场 提交于 2020-01-16 04:21:06
问题 I have an application made with jhipster version 5.0.0-beta.0 and I try to put it in Azure as a web app and did not start I tried to put the war with FTP. The war is named ROOT, the azure automatically extracts it but the application did not start. On local same war, I start it with the command: java -jar root.war --server.port=9402 and it started normally. On the server, I have error 404 and in the Azure application logs, I have an HTML error (HTTP Error 404.0). I tried to generate a new

connect via ssh to jhipster docker container on CentOS 7

偶尔善良 提交于 2020-01-16 02:09:54
问题 I have installed docker ( version 0.11.1-dev, build 02d20af/0.11.1 ); seems to the latest available in any case for CentOS 7 ( yum update docker says there are no updates). As per installation instructions on jhipster site I've pulled the current image and run: sudo docker run -v ~/jhipster:/jhipster -p 8080:8080 -p 9000:9000 -p 4022:22 -t --name jhipster jdubois/jhipster-docker The image is running OK. However I fail to connect via ssh . If I run ssh with verbose option: ssh -vv -p 4022

connect via ssh to jhipster docker container on CentOS 7

≯℡__Kan透↙ 提交于 2020-01-16 02:08:23
问题 I have installed docker ( version 0.11.1-dev, build 02d20af/0.11.1 ); seems to the latest available in any case for CentOS 7 ( yum update docker says there are no updates). As per installation instructions on jhipster site I've pulled the current image and run: sudo docker run -v ~/jhipster:/jhipster -p 8080:8080 -p 9000:9000 -p 4022:22 -t --name jhipster jdubois/jhipster-docker The image is running OK. However I fail to connect via ssh . If I run ssh with verbose option: ssh -vv -p 4022