jhipster

how to run more than one angular directive modules on Pprod

我是研究僧i 提交于 2019-12-04 13:26:32
问题 I am working on jhipster Release 0.7.0 and I have multiple type of directive modules in our jhipster app.first for index page and second for commmon directive. When we run on Prod profile i got an exception :- [31mPhantomJS 1.9.7 (Windows 7) ERROR[39m Error: [$injector:nomod] Module 'common-services' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument. http://errors.angularjs.org

Missing User class - creating entity relationship to User entity in Microservice

谁说我不能喝 提交于 2019-12-04 12:46:50
I want to create an entity that has a Many to One relationship with JHipster's User entity. I've used JDL-Studio to create the following entity and relationship to User which is imported into my Microservice as a .jh file using jhipster import-jdl: entity Profile { name String required bio String location String photo ImageBlob } relationship ManyToOne { Profile{user} to User } angularSuffix * with mySuffix dto * with mapstruct Upon compiling my Micro Service I get the following errors: Profile.java:44: error: cannot find symbol private User user; symbol: class User location: class Profile

How does maven (running under dev profile) include the javascript files inside index.html?

邮差的信 提交于 2019-12-04 12:39:27
I haven't used jhipster since version 2.0 and I'm currently playing catch-up with version #4.0.6. When I try to build the initial app through "./mvnw" (with default dev maven profile) from the command line, the application javascript files are not added to the index.html (so that page comes up blank in my browser when I try http://localhost:8080 ). Could someone please explain me the normal chain of events which normally lead maven (running with the dev profile) to include the application javascript files into index.html ? Thank you very much in advance for your help. Best Regards kbjp Our

What is the correct Eclipse setup for JHipster?

瘦欲@ 提交于 2019-12-04 12:31:55
I am getting this error from the first attempt to get a jhipster project compiled in STS Eclipse. The type org.springframework.core.NestedRuntimeException cannot be resolved. It is indirectly referenced from required .class files CustomPersistentRememberMeServices.java /us-modeldrivers-jhipsterTest003/src/main/java/us/modeldrivers/jhipsterTest003/security line 1 Java Problem My process so far : Install jhipster and run a project build Create a Spring project in STS Eclipse Update the pom to that generated by jhipster Copy the jhipster code into the appropriate package in the eclipse project

CORS Origin Spring Boot Jhipster - pre-flight fails

穿精又带淫゛_ 提交于 2019-12-04 10:53:47
I am using jhipster v2.27.2 I have enabled cors by uncommenting the lines in the application.yml jhipster: async: corePoolSize: 2 maxPoolSize: 50 queueCapacity: 10000 cors: #By default CORS are not enabled. Uncomment to enable. allowed-origins: "*" allowed-methods: GET, PUT, POST, DELETE, OPTIONS allowed-headers: "*" exposed-headers: allow-credentials: true max-age: 1800 In the "WebConfigurer" @Bean public CorsFilter corsFilter() { UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource(); CorsConfiguration config = props.getCors(); if (config.getAllowedOrigins() != null &

Auto generate JHipster entities from existing database

不打扰是莪最后的温柔 提交于 2019-12-04 09:47:33
As part of JHispster 2.11.0, the entity configuration is saved in a specific .json file, in the .jhipster directory. These files can be used to regenerate entities and related files in JHipster application using the below command. yo jhipster:entity ENTITY_NAME Is there any way to auto generate those .json files from existing database? We are currently working to generate those files from a UML model, see our JHipster UML project. So if you can export your database schema to UML, this could be doable, but I don't think this can work as smoothly as expected. 来源: https://stackoverflow.com

Jhipster - Configure multiple datasources

旧时模样 提交于 2019-12-04 07:16:55
I have springBatch App where I was using multiple datasources which I configured as below which is pretty much straight forward. It was working fine. How to use 2 or more databases with spring? Now I had to integrate it to Jhipster project. I did similar kind of configuration in application.yml. I removed auto generated Datasource from application.yml and added configurations similar to above post and injected the primary Datasource in DataBaseConfiguration.java which is Jhipster generated class. With this configuration I am unable to do CRUD operation on Database entities form JHipster UI. I

The configured limit of 1.000 object references was reached while attempting to calculate the size of the object graph

为君一笑 提交于 2019-12-04 02:02:00
I have a jhipster project and I added some entities. My services are very slow because this warning message: The configured limit of 1.000 object references was reached while attempting to calculate the size of the object graph. Severe performance degradation could occur if the sizing operation continues. This can be avoided by setting the CacheManger or Cache <sizeOfPolicy> elements maxDepthExceededBehavior to "abort" or adding stop points with @IgnoreSizeOf annotations. If performance degradation is NOT an issue at the configured limit, raise the limit value using the CacheManager or Cache

JHipster get the current user

梦想与她 提交于 2019-12-03 23:13:04
I am working on a JHipster application, I have a Study entity which has a many-to-one relationship with User (So one user can have many studies). I am trying to change the user select in the dialog component for creating a new Study to automatically select the current logged in user. I have changed the select so that only the single user should show up as an option for the select, after fixing this issue I would either disable the field or remove it so that study.user is automatically set: <select class="form-control" id="field_user" name="user [(ngModel)]="study.user" > <option [ngValue]=

Does webpack packages files referenced in .angular-cli.json?

不羁岁月 提交于 2019-12-03 22:43:54
问题 There is a "styles" section and "scripts" section in .angular-cli.json . I have added some files under "styles" and "scripts" sections. It appears that my angular project does not recognise these files. Is webpack aware of the configurations inside .angular-cli.json? Does webpack packages files referenced under "styles" and "scripts" section of .angular-cli.json ? If yes, how can I be sure it is actually doing this? How can I trace which files are packed, which files aren't packed by webpack?