jhipster

spring-boot-devtools causing ClassCastException while getting from cache.

霸气de小男生 提交于 2019-11-30 14:04:11
I am facing issue while getting value from cache. java.lang.RuntimeException: java.lang.ClassCastException: com.mycom.admin.domain.User cannot be cast to com.mycom.admin.domain.User Cache Configuration @Configuration @EnableCaching @AutoConfigureAfter(value = { MetricsConfiguration.class, DatabaseConfiguration.class }) @Profile("!" + Constants.SPRING_PROFILE_FAST) public class MemcachedCacheConfiguration extends CachingConfigurerSupport { private final Logger log = LoggerFactory.getLogger(MemcachedCacheConfiguration.class); @Override @Bean public CacheManager cacheManager() {

In JHipster how to create entity with relationship with User?

℡╲_俬逩灬. 提交于 2019-11-30 08:21:15
I need to create my own entities using the JHipster using the command "yo jhipster:entity myEntity" that have many-to-one relationship with the User entity that comes by default in JHipster. I have tried unsuccessfully to create in the wizard a relationship with the entity "user" and the field "login" but it is not working. What is the good way to do this with JHipster? Or do I have to create the entity without JHipster tool (but I need the CRUD!). Thanks, Yann Just an update - jhipster 2.5.0 was released a few days ago adding support for this. Created this answer since the formatting in

How to update the JHipster project after updating JHipster generator?

爱⌒轻易说出口 提交于 2019-11-30 06:41:54
I updated my JHipster installation as per this page by running the command npm update -g generator-jhipster But to update my application I am not sure where should I run the next command yo jhipster . I tried running it from the root of existing project, but it asked me to enter the name of the new project. I tried running it at one level above the root of existing project, then also it asked me the name of the new project. But this time I entered the same name and the jhipster generation process ran. However there was no change in any of the major files like package.json or Gruntfile.js or

JHipster authentication using Postman and JWT

ⅰ亾dé卋堺 提交于 2019-11-30 03:52:11
I'd been using the Postman in-tab extension to tests calls to call JHipster resource API's and found that it worked great (JHipster setup to use OAuth2). I authenticated using the JHipster login page, then opened up a new tab with the Postman extension. I just switched my JHipster application to use JWT and this method of using Postman no longer works, I get permission denied when calling the API. Moreover, the in-tab extension for Postman is being deprecated in favor of the stand-alone app. Question: Is there any documentation on setting up Postman for authenticating against JHipster/JWT?

Application generated with JHipster 4 returning blank page on 8080, but not on 9000

二次信任 提交于 2019-11-30 03:23:57
I've create an application with JHipster v4. When I make a request on port 8080 it is returning a blank page. If I use yarn start , and I make a request to 9000 port, it is answering correctly. Any idea? I had the same issue with JHipster application bringing up the blank page on port 8080 when ran with ./mvnw in dev mode. I was able to resolve this by running: yarn install && yarn webpack:build After it finishes, the application shows normally in dev mode on port 8080. I had the same issue where on port 8080, it was returning nothing and on 9000 it gave correct page , after yarn install &&

How to deploy microservices on Heroku

吃可爱长大的小学妹 提交于 2019-11-29 22:29:58
I have read a lot about microservices, and would like to build my app with that approach. What I know so far is that I nead some services like: load balancer - to deal with every request, and push it forward to another services authorization service - to authorize my users database - for my microservices. I would like to use one instance of DB with different schemas for every service. service A - for functionality A service B - for functionality B etc. etc. etc. I found out, that Heroku is interesting place to deploy applications. My problem is that I completely don't understand they ideology.

JHipster configure maven wrapper proxy

僤鯓⒐⒋嵵緔 提交于 2019-11-29 17:55:37
问题 According to https://jhipster.github.io/configuring-a-corporate-proxy/ I have set up my proxy settings in /.m2/settings.xml like this : <proxies> <proxy> <id>myId</id> <active>true</active> <protocol>http</protocol> <username>myDomain\myUsername</username> <password>myPassword</password> <host>myHost</host> <port>myPort</port> </proxy> </proxies> But somehow it is not working when I'm trying to mvnw the project, it's giving me : Exception in thread "main" java.net.ConnectException: Connection

基于JHipster创建简单Demo

和自甴很熟 提交于 2019-11-29 14:12:21
一、JHipster简介 Java 潮客者,Java 极客者 是开源技术 或者 可以称之为工具。 基于 Node.js + Yeoman + Bower + Angular JS + Gulp + Spring Boot 等 Java代码生成器,是各种最佳实践的结合。 Node.js:是一个Javascript运行环境(runtime),实际上它是对Google V8引擎进行了封装,用于方便地搭建响应速度快、易于扩展的网络应用。 Yeoman:是三个工具的集合 YO:Yeoman核心工具,项目工程依赖目录和文件生成工具,项目生产环境和编译环境生成工具; GRUNT:前端构建工具,jquery就是使用这个工具打包的; BOWER:Web开发的包管理器,概念上类似npm,npm专注于nodeJs模块,而bower专注于CSS、JavaScript、图像等前端相关内容的管理; Bower:客户端技术的软件包管理器,它可用于搜索、安装和卸载如JavaScript、HTML、CSS之类的网络资源; AngularJS:优秀的前端JS框架,最为核心特性是:MVC、模块化、自动化双向数据绑定、语义化标签、依赖注入等等; Gulp:是基于Node.js的自动任务运行器, 她能自动化地完成 javascript/coffee/sass/less/html/image/css 等文件的的测试、检查

In JHipster how to create entity with relationship with User?

落爺英雄遲暮 提交于 2019-11-29 11:07:56
问题 I need to create my own entities using the JHipster using the command "yo jhipster:entity myEntity" that have many-to-one relationship with the User entity that comes by default in JHipster. I have tried unsuccessfully to create in the wizard a relationship with the entity "user" and the field "login" but it is not working. What is the good way to do this with JHipster? Or do I have to create the entity without JHipster tool (but I need the CRUD!). Thanks, Yann 回答1: Just an update - jhipster

Running JHipster Gradle task from Intellij IDEA

时光总嘲笑我的痴心妄想 提交于 2019-11-29 08:02:37
This error happens when I run with Gradle through from Intellij IDEA.. but from console everything works fine... someone knows why? Executing external task 'run --stacktrace'... :compileJava UP-TO-DATE :compileScala UP-TO-DATE :bower FAILED org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':bower'. Caused by: java.io.IOException: Cannot run program "bower" (in directory "/Users/eduardo/Development/projects/jhipster"): error=2, No such file or directory John Thompson I contacted JetBrains support about this. The one thing they suggested was running IntelliJ from the