pagehelper / Mybatis-PageHelper

Mybatis通用分页插件
https://mybatis.io
MIT License
12.18k stars 3.13k forks source link

banner 建议加在PageHelperProperties 进行开关,不建议用代码方式 #824

Open 1713612859 opened 2 months ago

1713612859 commented 2 months ago

pageHelper version:2.0.0

public PageInterceptor() {
        String bannerEnabled = System.getProperty("pagehelper.banner");
        if (StringUtil.isEmpty(bannerEnabled)) {
            bannerEnabled = System.getenv("PAGEHELPER_BANNER");
        }
        //默认 TRUE
        if (StringUtil.isEmpty(bannerEnabled) || Boolean.parseBoolean(bannerEnabled)) {
            log.debug("\n\n" +
                ",------.                           ,--.  ,--.         ,--.                         \n" +
                "|  .--. '  ,--,--.  ,---.   ,---.  |  '--'  |  ,---.  |  |  ,---.   ,---.  ,--.--. \n" +
                "|  '--' | ' ,-.  | | .-. | | .-. : |  .--.  | | .-. : |  | | .-. | | .-. : |  .--' \n" +
                "|  | --'  \\ '-'  | ' '-' ' \\   --. |  |  |  | \\   --. |  | | '-' ' \\   --. |  |    \n" +
                "`--'       `--`--' .`-  /   `----' `--'  `--'  `----' `--' |  |-'   `----' `--'    \n" +
                "                   `---'                                   `--'                        is intercepting.\n");
        }
    }
abel533 commented 2 months ago

除了 pr#https://github.com/pagehelper/pagehelper-spring-boot/pull/177 还要改哪些?

1713612859 commented 2 months ago

只要加这个配置即可