by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
agilob
@agilob
Do i need any extra config on jhipster micronaut to run migrations on prod profile against PSQL db? It works in dev profile, but when deployed on prod it, connects to DB but doesnt run any migrations, no tables are created. Should I investigate and open a bug or is there something I need to change?
1 reply
Gabriel Mautino
@GabrielMautino_twitter
Hi all! some extra settings to avoid "WARN 2296 --- [ad | producer-1] org.apache.kafka.clients.NetworkClient: [Producer clientId = producer-1] Connection to node -1 (localhost / 127.0.0.1: 9092) could not be established. Broker may not be available. "
I added a clause to the firewall; I disabled firewall; but keep throwing warnings.
Muchas gracias!!
Peter E Olsen III
@hepaestus
Does anybody else get a weird error every once in a while Cannot find name 'module'. Do you need to install type definitions for node? Try 'npm i @types/node' I have to reinstall then it goes away but comes back again later. Why does this happen? I even use the --save flag in the npm install command.
windbender
@windbender
How does one extend the method performance monitoring beyond the default set of Resource and Controllers? I'd like to monitor some of my services as well.
windbender
@windbender
so I found: https://stackoverflow.com/questions/48704789/how-to-measure-service-methods-using-spring-boot-2-and-micrometer Which discusses the use of @Timed . I'm wondering if there is a way to do this with an Aspect so I can monitor all public methods on all services.
OK! so I finally found my way to the generated code "ControllerProfiler".... I think I can roll from here.
Dann
@Dann00CS
Hi everyone, I am really stuck with a problem related with the creation of an element in the mysql database. I am using jhipster and angular. Even though jhipster creates all the crud logic of each entity, I have had to custom my crud, so now I have like "steps" in order to create related elements in different entities. I mean, I create an element, and inside its edit view (for example: patients edit view), now I have an "steps button", and if I click on it, the code tries to find an specific element in an entity which have the id_patient related. The logic of this steps is that there can only be one element with this id_patient, so if I click the button, and there is not any element with an specific id_patient, I create one when save button is clicked and if it is already created, I find it and redirect to its edit view. My problem is that when I do this previous logic, in creation situation, save function is executed once (front and back functions) but I do not know why in the mysql database two elements are created (with the same fields, but with the id changed, just because it is an autoincrement field). I am really confused because I do not what can be the origin of this problem. Any of you have had the same problem? Thanks in advance if any of you can help me!
4 replies
talk2starGit
@talk2starGit
I am not able to connect my Jhipster microservice to my local MySQL database. Pls guide about the configurations.
1 reply
Hizmarck
@Hizmarck_twitter
Is possible to configure port 80 in jhipster? I've configured application*.yml
5 replies
kuisrt
@kuisrt_twitter
mapper类在uaa项目可以注入,但是在微服务应用中注入不了
image.png
Anshul Jain
@anshuljjain_twitter

How to use the Enum value while you save into the database: Enum class

public enum Direction{
    EAST("east");
    WEST("west");

    private final String value;


    Direction(String value) {
        this.value = value;
    }

    public String getValue() {
        return value;
    }
}

Currently when I saving the values it save as EAST/WEST but GUI show the things as east/west which I would like to save rather then the caps latter values. Any suggestion on this

3 replies
talk2starGit
@talk2starGit
Hi , I am struggling with an issue when trying to call the Jhipster service from the custom angular UI. Getting CORS issue and unable to go forward that.. not able to find a fix for that yet. Help is much much appreciated !
Al Grant
@bigal_nz_twitter
Anyone have a guide to adding a view made up of an object and its related entitys?
1 reply
I have started but my new view has a syntax error
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';

import { IPlan } from 'app/shared/model/plan.model';
import { ITask } from 'app/shared/model/task.model';

@Component({
  selector: 'jhi-plan-task-detail',
  templateUrl: './plan-task-detail.component.html',
})
export class PlanTaskDetailComponent implements OnInit {
  plan: IPlan | null = null;
  task: ITask | null = null;

  constructor(protected activatedRoute: ActivatedRoute) {}

  ngOnInit(): void {
    this.activatedRoute.data.subscribe(({ plan }) => (this.plan = plan));
    this.activatedRoute.data.subscribe(({ task }) => (this.task = task));
  }

  previousState(): void {
    window.history.back();
  }
}
after the last } I have a error : TS1128 Declaration or statement expected
Al Grant
@bigal_nz_twitter
Can someone help me - the detail screen for one of my entities is showing Unix timestamp rather than human readable date
2 replies
Al Grant
@bigal_nz_twitter
@amatosg awsome that works
@amatosg you still online?
4 replies
Al Grant
@bigal_nz_twitter
Anyone else here using Intellij?
Alejandro Matos
@amatosg
I do
debjupiter18
@debjupiter18
I have a business scenario in my organization, Goes like this: centralize all micro-service configuration files(which are currently present as externalized in the individual service level) into a central configuration. While using latest JHipster 6(v6.3.0) as prototypes I generated a gateway, two micro services with entities back-end MYSQL . I generated JHipster registry app as eureka central server and microservices as eureka clients and also observed Cloud config server be default also up and it runs with dev/native profile. The issue I am facing to centralize the microservcie configuration from registry server . Listing the challenge: 1. in config directory bootstrap.yml defaults to dev profile and have search-locations:./file/central-config but not reading my file e.g., conference-dev.yml. Issue#2 If I move back to Microservice app genrated by JHipster I observed central-server-config fodler is directly under docker folder in the project structure, my query can't we generate centralized configuration in JHipster without using docker? What can be potential solution for such issue and any good suggestions I cna try with my prototypes or if there are any limitations to this?
debjupiter18
@debjupiter18
I have a business scenario in my organization, Goes like this: centralize all micro-service configuration files(which are currently present as externalized in the individual service level) into a central configuration. While using latest JHipster 6(v6.3.0) as prototypes I generated a gateway, two micro services with entities back-end MYSQL . I generated JHipster registry app as eureka central server and microservices as eureka clients and also observed Cloud config server be default also up and it runs with dev/native profile. The issue I am facing to centralize the microservcie configuration from registry server . Listing the challenge: 1. in config directory bootstrap.yml defaults to dev profile and have search-locations:./file/central-config but not reading my file e.g., conference-dev.yml. Issue#2 If I move back to Microservice app genrated by JHipster I observed central-server-config fodler is directly under docker folder in the project structure, my query can't we generate centralized configuration in JHipster without using docker? What can be potential solution for such issue and any good suggestions I cna try with my prototypes or if there are any limitations to this?
7 replies
debjupiter18
@debjupiter18
Any response on my query please, can we centralize microservice configuration using JHipster( I am using v6.3.0) without Docker( using JHipster Registry)?any leads please share
1 reply
AndreaKlone
@AndreaKlone
hello!
hanoisteve
@hanoisteve
Well Just tried changing Spring boot version to 2.3.2.RELEASE but every time I run it still on 2.1.8? What do I need to do?
I have done mvn clean install repo purge etc but it wants to run on 2.1.8 no matter what I do? How does one upgrade from 2.1.8?
This is basic. I want to know how to upgrade from 2.1.8 to 2.3.2?
gco-nb
@gco-nb

Hello,
I have a quite fresh install on Windows 10 64bits, OpenJDK 11, Node 12.18.2 and Jhipster 6.10.1.
I generate a simple monolith app and when I run the mvnw command I have an issue with the npm install :

[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.10.0:npm (npm install) on project dem-3: Failed to run task: 'npm install' failed. java.io.IOException: Cannot run program "C:\Temp\jhipster\dem3\node\node.exe" (in directory "C:\Temp\jhipster\dem3"): CreateProcess error=193, %1 nest pas une application Win32 valide -> [Help 1]

Any idea on how to solve?

1 reply
hanoisteve
@hanoisteve
Well How can I use Spring Kafka 2.5 when I am stuck on version 2.1.8 of Spring Boot?
hanoisteve
@hanoisteve
I repeat how can I use Spring Kafka 2.5 when there is no upgrade path to Spring Boot 2.3.2?
I need to use deserialization methods that are only available there.
No simple upgrade of spring boot. And no advice on how to use later Kafka libraries. Just great !!!!
Alejandro Matos
@amatosg
you got the advice in StackOverflow
Marouane FAHIM
@MarouaneFahim
hello, i had created a jhipster application without integrating ElasticSearch can i add it now?
Alejandro Matos
@amatosg
it will take some work, but it’s possible
Tibi Stibi
@tibistibi_gitlab
@MarouaneFahim i would take a new jhipster app with elastic search as an example
Maek Twain
@maektwain
Hello, folks I am thinking of making node js based app to work as a microservice among several other services generated .
Is this possible?
hanoisteve
@hanoisteve
What is the point of this forum if I cannot get a simple question asked about using latest Spring Kafka libraries. I am being held back by Spring Boot 2.1.8 from using anywhere near the latest libraries for Spring Kafka etc I need to know the work around for this and it seems like a common question that concerns.anyone stuck on a non 2.3.2 version of JH which is a lot!!
Pratik Raj
@Rajpratik71
Hi @all , Generated two Microservice using jhipster manually , One as API gateway other as normal microservice and deployed using docker-compose . "The issue is , not able to authenticate and call any API of second microservices" while able to authenticate to API gateway microservice and Jhipster registry using API from Postman , Swagger Doc.
Al Grant
@bigal_nz_twitter
Good evening all
In a map class - what does the ignore statement do?
2 replies
    @Mapping(target = "tasks", ignore = true)
Marouane FAHIM
@MarouaneFahim
@amatosg could you please give me some guides to integrate ElasticSearch in my app. Thank you!
Alejandro Matos
@amatosg
I’m sorry. I don’t use ElasticSearch (I only implement a technology when is strictly required). There are a couple of things you can try.
  1. You could generate a project with ES and another with the current techstack you already have and then compare the changes between those 2 projects
  2. Analyse the need to have ES: do you really need it at this point?
  3. Read the ES documentation and implement it by hand, which I would recommend as it will teach you a lot about how it works (+experience)
Al Grant
@bigal_nz_twitter
I tried to have a entity Plan with a generated One to Many with Task AND a Many to One with Area, but JHipster doesnt seem to create a DTO which supports being populated with both related entities (Task and Area(