jhipster

After adding elasticsearch support, Spring Boot complain BeanCreationException with nested IllegalStateException No association found

落花浮王杯 提交于 2019-12-25 03:13:38
问题 I have run into a strange problem. I created a project with Spring Boot 2.0.1 with redis , mongodb and elasticsearch . Before adding elasticsearch, everything runs smoothly, but after I add elasticsearch, Spring Boot starts complaining,but the error looks like not related to elasticsearch, it complains that it could not create userRepo 。 Please get noticed I used lombok's @RequiredArgsConstructor to generate constructor to make injection work, so it should not be @autowired issue, Anyone can

Making Date queries on MongoDB using JSON on SpringDataMongoDB

独自空忆成欢 提交于 2019-12-25 01:39:43
问题 I'm having some trouble making MongoDB Date queries using @Query annotation on SpringDataMongoDB on a project created using JHipster. Since JHipster was used to create the project most of the queries were created using Spring Data query builder mechanism and for more refined queries, instead of using Type-safe Query methods I decided to stick with JHipster's standard configuration and make personalized queries using @Query annotation that allows the creation of MongoDBJSON queries. However, I

Upgrading my jhipster application

早过忘川 提交于 2019-12-25 01:29:56
问题 Why there is no upgrade jhipster application without regenerating all the entities, if it is there any anyone please let me know? 回答1: This is just a workaround for your specific problem and not a general instruction. JHipster provides an upgrade sub generator to upgrade the application. You can run it on the JHipster app by running command jhipster upgrade this will upgrade the application and regenerate the entities and it is the recommended approach as there might be bug fixes and

OAuth2AuthenticationToken not been recognized in getAccount JHipster 6.0.1

人盡茶涼 提交于 2019-12-25 01:19:47
问题 I have a native android client with OAuth2 authentication to my JHipster monolithic app. It worked properly with the JHipster version 5.7.2 , but now I am using version 6.0.1 and I am not been able to get the current user by using getAccount(Principal principal) method in AccountResource class. the object sent by keycloak is not an instance of OAuth2AuthenticationToken class, so I am getting a Exception "User could not be found" In the previous version I used to get a OAuth2Authentication

Send email with images using JHipster and Thymeleaf

六眼飞鱼酱① 提交于 2019-12-25 00:53:25
问题 I'm trying to use images in my JHipster project, but Thymeleaf can't identify the location of the images in my JHipster project. My images are located in this folder: *C:\PATH\src\main\webapp\content\img_email* and my HTML templates in: *C:\PATH\src\main\resources\mails*. I tried following combinations such as src="../../content/img_email/logo-5asec.jpg" and even tried to use the notation th:src="@{~/PATH/img_email/logo-5asec.jpg}" . I even tried to change the images folder location without

Sub component template not rendered

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-25 00:02:43
问题 I created a brand new project with jhipster using angular, internationalization and maven. The project compiles and runs without any problem. Than I created a new angular component with: ng generate component my-new-component I included that component into src/main/webapp/app/layouts/main/main.component.html <jhi-page-ribbon></jhi-page-ribbon> <div> <router-outlet name="navbar"></router-outlet> </div> <div class="container-fluid"> <div class="card jh-card"> <router-outlet></router-outlet>

Jhipster blank page

牧云@^-^@ 提交于 2019-12-24 20:17:24
问题 I started working on web services. Whenever I try to run existing project in Netbeans. Project builds successfully with result Application 'Project Name' is running! Access URLs: Local: http://localhost:8090 External: http://192.168.1.4:8090 Profile(s): [swagger, dev] When ever I go to browser and try to run this URL. I don't get response. I have no idea what's wrong. Please help me. 回答1: These commands helped me 1) yarn 2) yarn webpack:build 3) ./mvnw 来源: https://stackoverflow.com/questions

JHipster - Maven and Yarn Execution

瘦欲@ 提交于 2019-12-24 19:45:37
问题 As per the JHipster documentation, I am supposed to be able to access the application by default at localhost:8080 but the page comes out to be blank. I installed yarn 0.27.5 and issues the command yarn start to start the UI. Now I am able to access the application at localhost:9000. I have to run the mvnw and yarn commands at the same time for the application to be available for use, but it should be just the maven command. Can someone please explain the reason and how do I do this from

liquibase checksum validation error is even after updating changelog in master.xml

痴心易碎 提交于 2019-12-24 19:36:01
问题 I am using postgresql in jhipster microservices application. I am following jhipster documentation as below. Database updates with the Maven liquibase:diff goal If you have choosen to use MySQL, MariaDB or PostgreSQL in development, you can use the ./mvnw liquibase:diff goal to automatically generate a changelog. If you are running H2 with disk-based persistence, this workflow is not yet working perfectly, but you can start trying to use it (and send us feedback!). Liquibase Hibernate is a

Jhipster display “this is your footer” only. ReferenceError: angular is not defined

夙愿已清 提交于 2019-12-24 12:58:27
问题 I read JHipster After creating sample entity nothing is shown in the browser .In my case bower seem fine. It have the angularjs lib (When use bower list). Why it still can't reference to angularjs? If you have any suggestion on where to investigate. Thanks. 回答1: Can you provide the output from your browser's JavaScript console? Look for a syntax error. Also you can try grunt wiredep in order to inject your bower dependencies into your source code (normally index.html). 回答2: Your index.html