jhipster

Problems deploying jhipster app to heroku

家住魔仙堡 提交于 2019-12-12 02:35:59
问题 I'm trying to deploy a jhipster based app to heroku using the heroku subgenerator. Everything works and the app is deployed but it seems that the database is not properly configured (using Mysql). The thrown error is the following: org.springframework.context.ApplicationContextException: Heroku database URL is not configured, you must set $JDBC_DATABASE_URL Cannot find a solution in the documentation. Maybe i'm missing some configuration before deployment? 回答1: It sounds like the database

Creating a Gateway in JHipster microservice arhitecture without database

[亡魂溺海] 提交于 2019-12-12 01:28:50
问题 I am trying out JHipster based on the supported Microservice architecture. I have created a Registry, Gateway, and a Microservice (based on JWT authentication) as described in documentation and everything works. However I am not sure why a Gateway in JHispter need to have a database. Questions that are still unanswered for me: 1- Why does a Gateway need a database? In which scenarios would you create a Gateway with/without a database? 2- Do the Gateway and Microservice use the same database?

Collection null in AngularJS + Spring Data JPA @OneToMany @ManyToOne

送分小仙女□ 提交于 2019-12-11 23:47:27
问题 I have a bidirectional relationship. This is my entity factura : @Entity @Table(name = "T_FACTURA") @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE) public class Factura implements Serializable { ... @OneToMany(mappedBy = "factura") @JsonIgnore @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE) private Set<Facturaservicio> facturaservicios = new HashSet<>(); ... @Override public String toString() { //all attributes except facturaservicios } } This is my entity

Why is using jhipster oauth2 stateful, and how to implement it?

最后都变了- 提交于 2019-12-11 17:59:08
问题 Using Jhipster (monolith, oauth2, with registry) forces our users to log-in every once in a while. After searching a bit, we assume that it's because we have multiple instances of our monolith and sometimes the users get routed to different instances. So I have 2 questions: Why does Jhipster implement oauth2 in a stateful way? How should we handle this, assuming we're staying with the current configuration? 来源: https://stackoverflow.com/questions/54169816/why-is-using-jhipster-oauth2-stateful

Error assembling WAR - webxml attribute is required

我的未来我决定 提交于 2019-12-11 16:55:29
问题 I'm hitting the following with a jhipster app when running the ./mvnw build: Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode) 回答1: This regression for microservices has been reported in 4.11.0 and fixed: https://github.com/jhipster/generator-jhipster/pull/6742. New release should be available tonight. In the meantime you can fix it in your own pom.xml by setting failOnMissingWebXml to false: <plugin> <groupId>org.apache.maven

How to use JHipster 5+ with PrimeNG 6+

ぃ、小莉子 提交于 2019-12-11 15:19:50
问题 I tried: official getting started guide for PrimeNG Steps to integrate PrimeNG with JHipster (sorry if this is a duplicate post, have no rep to comment there) generator-jhipster-primeng and some other articles and stackoverflow posts with no luck on getting the latest PrimeNG 6+ to work with the latest JHipster 5+. It mostly works, but the styles are a bit off - mainly it seems like primeicons aren't working. For example, I tried the primeng filter table example and it mostly works except the

How use bootstrap with thymleaf in jhipster application

。_饼干妹妹 提交于 2019-12-11 14:34:34
问题 I'm currently working on an email template with thymeleaf in a jhipster application. My problem is that i can't use bootstrap css in thymeleaf template. I understand that thymeleaf is a server-side technology and cannot load bootstrap css that exists on client-side (via node_modules), but when i saw answers to these two questions question1 and question2 i tried by similarty to import my css like this <link rel="stylesheet" type="text/css" media="all" th:href="@{|${baseUrl}/content/css/global

jhipster react remove # to URL

允我心安 提交于 2019-12-11 14:22:32
问题 I'm new to the community. I built an e-commercce application with the Jhipster (Java + React Redux) Monolitica. I have the following problem: The application is configured to display a hashtag (#) in the URL for example ... http://localhost:9000/#/. I removed this parameter in React and everything was right. But when I upload the application with Gradle (./gradew) it works, http://localhost:9000/. But if you type directly into the browser http://localhost:9000/home/ I get ERROR 404, Page not

How to load data with data.sql using JHipster and Spring Boot

做~自己de王妃 提交于 2019-12-11 10:49:47
问题 I have a Jhipster monolithic application. I removed Liquibase and I want to use data.sql file to insert initial data. I created a data.sql and data-h2.sql which contain insert scripts. They are located under src/main/resources . But none of the data seems to be inserted. How can I use data.sql to insert data during startup, without using Liquibase? 回答1: Commenting spring.datasource.type property and adding spring.jpa.hibernate.create-drop property helped resolve this issue. I think some

How to override the spring boot version used by jhipster

限于喜欢 提交于 2019-12-11 10:10:47
问题 my JHipster generated application uses <jhipster-dependencies.version>2.0.28</jhipster-dependencies.version> which includes Spring Boot v.2.0.6 But I want to use Spring Boot 2.1.1 What do I need to change in my pom.xml to achieve that. I tried to set <spring-boot.version>2.1.1.RELEASE</spring-boot.version> But when I build & run, still v2.0.6 is used. 来源: https://stackoverflow.com/questions/53770651/how-to-override-the-spring-boot-version-used-by-jhipster