本文介绍了在JHipster 2.26中暂时禁用Liquibase的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用JHipster作为教授软件工程的工具.我想逐步教JHipster来软化学习曲线.在这方面,请,我想知道暂时禁用Liquibase的最聪明的方法.我更喜欢在学术课程开始时使用JPA2 DDL自动功能( https://docs.spring.io/spring-boot/docs/current/reference/html/howto-database-initialization.html#如何使用jpa初始化数据库).非常感谢您提供了出色的AngularJS + Spring Boot生成器.

I am using JHipster as a tool to teach Software Engineering. I would like to teach JHipster incrementally to soften the learning curve . In this regard, please, I'd like to know the smartest way to temporarily disable Liquibase . I prefer to use the JPA2 DDL auto functionality at the begining of the Academic course (https://docs.spring.io/spring-boot/docs/current/reference/html/howto-database-initialization.html#howto-initialize-a-database-using-jpa) .Thank you very much for this awesome AngularJS + Spring Boot generator.

推荐答案

我在src \ main \ resource \ config \ application-dev.yml的Jhipster 3.12中使用jihipster 3.12

I'm using jihipster 3.12, in Jhipster 3.12, in your src\main\resource\config\application-dev.yml

更改配置文件设置以添加"no-liquibase",如下所示:

change profiles setup to add "no-liquibase" like this:

spring:
    profiles:
        active: dev
        include: swagger, no-liquibase

希望有帮助

这篇关于在JHipster 2.26中暂时禁用Liquibase的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-23 13:16