jhipster

jHispter Elasticsearch issue after adding any custom entity

自闭症网瘾萝莉.ら 提交于 2020-01-15 09:57:35
问题 org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'countryServiceImpl' defined in file [E:\tms-ws\TransportManagement\target\classes\com\baltransport\tms\app\v1\service\impl\CountryServiceImpl.class]: Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'countrySearchRepository': Invocation of init method failed; nested exception

Thymeleaf-Unable to add a logo to the email

限于喜欢 提交于 2020-01-15 08:12:53
问题 I am new to thymeleaf and jhipster, I'm currently working on an email template with thymeleaf. I need to add a logo image into the email. I tried many methods but I'm confused where to save images and how to add then into the html template of email. th:src=@{/logo.png} - I used this tag and my image are inside project-web-app\src\main\webapp\logo.png. 回答1: The source of your image should point to an absolute URL with hostname that can be reached by mail reader. In JHipster 3, this URL can be

Jhipster 5.7 microservice failed to start on windows with error CreateProcess error=206, The filename or extension is too long

我是研究僧i 提交于 2020-01-15 07:17:40
问题 Jhipster 5.7 microservice failed to start on windows with error CreateProcess error=206, The filename or extension is too long I have created a Jhipster micro service. when I am trying to start, I get error CreateProcess error=206, The filename or extension is too long. All other questions are suggesting to reduce classpath or usning IntelliJ. None of them explained how. Here are few things I have trying: Remove Unnecessary jar from classpath: I have fresh Jhipsterap. I don't know which jar I

Feign Client from Jhipster UAA to microservice gateway app

末鹿安然 提交于 2020-01-15 06:50:18
问题 I have a Contact Entity in my gateway(gw-app) app and I would like to create a entry every time a new user is registered in the UAA app. I have been trying to use the inter service communication described in Jhipster documentation for microservices. Fist problem I have here is I don't have this interface @AuthorizedFeignClient in the UAA app. Second, I never got a success creation from uaa to gw-app using @FeignClient . Beside having the communication/configuration issues with the feign

How to add custom js and css files in jHipster 4

﹥>﹥吖頭↗ 提交于 2020-01-15 03:10:17
问题 As I'm not familiar with webpack, so I am facing some difficulties while working with jhipster 4. I want to add some application level js and css files in jHipster. Can someone suggest how to do that. 回答1: We learned while implementing primeng to add it in the src/main/webapp/content/scss/vendor.scss for example: @import '~primeng/resources/primeng.min.css'; @import '~primeng/resources/themes/bootstrap/theme.css'; We added the scss option when creating the jhipster app 回答2: Edit src/main

How to add custom js and css files in jHipster 4

荒凉一梦 提交于 2020-01-15 03:10:10
问题 As I'm not familiar with webpack, so I am facing some difficulties while working with jhipster 4. I want to add some application level js and css files in jHipster. Can someone suggest how to do that. 回答1: We learned while implementing primeng to add it in the src/main/webapp/content/scss/vendor.scss for example: @import '~primeng/resources/primeng.min.css'; @import '~primeng/resources/themes/bootstrap/theme.css'; We added the scss option when creating the jhipster app 回答2: Edit src/main

There is an easy way to add social login on Jhipster microservice Gateway?

大城市里の小女人 提交于 2020-01-14 03:35:10
问题 When I generate a monolithic app using yo , I'm asked if I want to use social login, but this doesn't happen during gateway creation on microservice model. Is there an easy way of adding social login on microservice gateway, or do I need to make it manually? 回答1: As far as I know, it is not possible without changing the structure of the generator. This cannot be a recommended approach but you may force the variable 'enableSocialSignIn' in .yo-rc.json or directly in the prompt.js file of the

Cannot run Unit Tests against REST layer

被刻印的时光 ゝ 提交于 2020-01-14 03:04:07
问题 I cannot unit test the web layer using jhipster (according to spring gs guides): @RunWith(SpringRunner.class) @WebMvcTest public class FlightControllerTest { @Autowired private MockMvc mockMvc; @MockBean private FlightService flightService; @Test public void testCreate() throws Exception { FlightDto expected = new FlightDto(); ReflectionTestUtils.setField(expected, "id", 1L); when(flightService.createFlight(any(FlightDto.class))).thenReturn(expected); FlightDto flightDto = new FlightDto();

jhipster liquibase doesn't update database

[亡魂溺海] 提交于 2020-01-13 16:24:11
问题 I m trying to add a new entity, I don't use the full hot reload, so I created a db-changelog-002.xml file with the new table to be created in the changeset of the file. Then I ran a mvn spring-boot:run, but my database doesn't get updated with the new table. Is it normal? Thank you in advance. 回答1: You must add your file to master.xml file, like below. <include file="classpath:config/liquibase/changelog/db-changelog-002.xml" relativeToChangelogFile="false"/> 回答2: No Need to create another db