jhipster

Using Components from Another Module on a Angular/JHipster Application

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-23 03:52:07
问题 I'm trying to use a component from another module on an Angular 5 application generated by jhipster . When a module that contains the component that I want to use is imported the route of the module where the importing occurred is overwritten by the route of the imported module . phone.module.ts exports PhoneComponent . contact-info.module.ts import phone.module.ts . After that, every route declared in contact-info.route.ts starts to render the components declared in the phone.module.ts . It

New JHipster application crashing when started

不想你离开。 提交于 2019-12-23 03:04:01
问题 I generated my first JHipster app. I followed the official step-by-step guide and made no changes to the generated project. However, when I start the app (i.e., run main from the IDE or execute ./gradlew ) the following error is repeated a few times: java.net.ConnectException: Connection refused at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717) at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport

client side tests fail using jhipster 5.1.0

我与影子孤独终老i 提交于 2019-12-23 02:50:40
问题 I'm using jhipster 5.1.0 and when I generate a new monolith app [using default options] and I run yarn test , it fails with the following output : $ yarn test yarn run v1.7.0 $ yarn run lint && jest --coverage --logHeapUsage -w=2 --config src/test/javascript/jest.conf.js $ tslint --project tsconfig.json -e 'node_modules/**' No valid rules have been specified FAIL src/test/javascript/spec/app/admin/health/health.component.spec.ts ● Test suite failed to run SecurityError: localStorage is not

Elasticsearch on Jhipster, Spring

无人久伴 提交于 2019-12-23 01:27:32
问题 Can someone give me example for using Elasticsearch in jHipster or in Spring-boot ? I have already generated entity using jHipster. There are input with placeholder :query ! /** * SEARCH /_search/samples/:query -> search for the sample corresponding * to the query. */ @RequestMapping(value = "/_search/samples/{query}", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE) @Timed public List<Sample> search(@PathVariable String query) { return StreamSupport .stream

JHipster: Enable anonymous users to read entity, but not update?

天涯浪子 提交于 2019-12-22 14:52:44
问题 I have generated a JHipster application using these values: { "generator-jhipster": { "jhipsterVersion": "3.1.0", "baseName": "app", "packageName": "my.app", "packageFolder": "my/app", "serverPort": "8080", "authenticationType": "session", "hibernateCache": "ehcache", "clusteredHttpSession": "no", "websocket": "no", "databaseType": "sql", "devDatabaseType": "h2Disk", "prodDatabaseType": "mysql", "searchEngine": "elasticsearch", "buildTool": "gradle", "enableSocialSignIn": false,

JHipster: Enable anonymous users to read entity, but not update?

泄露秘密 提交于 2019-12-22 14:52:10
问题 I have generated a JHipster application using these values: { "generator-jhipster": { "jhipsterVersion": "3.1.0", "baseName": "app", "packageName": "my.app", "packageFolder": "my/app", "serverPort": "8080", "authenticationType": "session", "hibernateCache": "ehcache", "clusteredHttpSession": "no", "websocket": "no", "databaseType": "sql", "devDatabaseType": "h2Disk", "prodDatabaseType": "mysql", "searchEngine": "elasticsearch", "buildTool": "gradle", "enableSocialSignIn": false,

Jhipster: hide entities from non-admin

帅比萌擦擦* 提交于 2019-12-22 08:59:28
问题 Greetings java hipsters! I just generated a jhipster project and created some entities. I'd like to hide some entities by restricting them to only the admin user. How do I achieve this ? Thanks! 回答1: First read Spring Security doc then look at your project source code that was generated by JHipster: it's full of such examples, pay attention to: SecurityConfiguration.java @Secured(AuthoritiesConstants.ADMIN) in UserResource.java Then for the angular part, you can add a requirement for admin

Add custom view to jhipster app

混江龙づ霸主 提交于 2019-12-22 06:55:52
问题 I would like to add a custom view to jhipster app on index.html I already created the link in navbar.html and added the html file on path src/main/webapp/scripts/app/custom/newView.html <a ui-sref="newView" data-toggle="collapse" data-target=".navbar-collapse.in"> <span class="glyphicon"></span> <span class="hidden-sm">new view</span> </a> When I click on the link it doesn't work. Probably it needs a custom route in angular but I can't figure out how to create it. What else should I do? 回答1:

jhipster liquibase validation error after modify entity

三世轮回 提交于 2019-12-22 05:58:27
问题 I was trying to add an field to my entity as a CLOB. When using the JHipster CLI it was no problem to add it. Now, when i trying to start my application i get the following validation error from liquibase: liquibase.exception.ValidationFailedException: Validation Failed: 1 change sets check sum config/liquibase/changelog/20170221193921_xxxxxxxx.xml::20170221193921-1::jhipster was: 7:d8b3f42d8d4d523c7b14f93b4c7657c7 but is now: 7:a2a365179a0d231c2771ebd79f51b1fc i also tried the following: .

Mapstruct generated class not being injected by Spring in JHipster web app

拥有回忆 提交于 2019-12-22 04:42:55
问题 I'm developing a web app created with JHipster v2.20.0. Using Eclipse 4.5.0 WTP as IDE. The Spring configuration is annotation based. I've just merged this pull with our code. When I try to run the application inside Eclipse I get this exception: [INFO] com.app.tenancy.hibernate.MyCurrentTenantIdentifierResolver - MyCurrentTenantIdentifierResolver.getTenantId(): Couldn't find Company/Tenant for the domain inventario, stopping serving the request [WARN] org.springframework.boot.context