当前位置:首页 > 大杂烩 > 正文内容

X2-300 中如何关闭intit jpa table

高老师2年前 (2024-04-08)大杂烩474

intit jpa table执行过程非常耗时,希望启动能够快一点,看下DBCommonJpaCoreApplicationReadyListener中定义可以知道配置项的代码:

@Value("${x3.jpa.init.entities:true}")
private boolean entities;

@Async("x3Async")
public void onApplicationEvent(ApplicationReadyEvent arg0) {
    if (this.entities) {
        logger.info("x3 - intit jpa table ...");
        this.jpaEntitiesHelper.init();
    }

}

在配置文件定义:

x3.jpa.init.entities=false

重启,yyds

扫描二维码推送至手机访问。

版权声明:本文由高久峰个人博客发布,如需转载请注明出处。

本文链接:https://blog.20230611.cn/post/738.html

分享给朋友:

“X2-300 中如何关闭intit jpa table” 的相关文章

c#中string和StringBuilder效率对比

c#中string和StringBuilder效率对比

    c#中string和StringBuilder直接看看执行速度。(2).String类型累计赋值Test               ...

Git本地仓库学习

Git本地仓库学习

1.全局用户信息设置 git  config  --global  user.name  gaojiufeng git  config  --global  user.email  392223903...

Git从远程仓库更新文件

Git从远程仓库更新文件

 git   pull  https://git.oschina.net/392223903/learn.git   master   换为您的git地址...

c#关闭计算机的代码

c#关闭计算机的代码

    1.关机Process.Start("shutdown", "-s -t 0");    2. 注销  Proc...

C# md5加密,C# md5加密代码

C# md5加密,C# md5加密代码

public static string GetMD5(string str) {     //创建MD5对象     MD5 md5 = MD5.C...

c#中文简体转换繁体

c#中文简体转换繁体

private const string fantizi = "高久峰是個程序員"; private const string jiantizi = "高久峰是个程序员...