• 大小: 97KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-05-14
  • 语言: 其他
  • 标签: redis集群  

资源简介

Spring集成redis集群

资源截图

代码片段和文件信息

package com.cn.dlnu.common.utils;

import java.io.File;
import java.util.ArrayList;
import java.util.List;


import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.mybatis.generator.api.MyBatisGenerator;
import org.mybatis.generator.config.Configuration;
import org.mybatis.generator.config.xml.ConfigurationParser;
import org.mybatis.generator.internal.DefaultShellCallback;

/**
 * @version V1.0
 * @Description: 逆向工程生成的xml
 * @Modified By:MingmingZhou  Created in  22:48 2016/11/21
 */
public class GeneratorSqlmap {

    private final static Logger logger = LogManager.getLogger(GeneratorSqlmap.class);

    public void generator() throws Exception {

        List warnings = new ArrayList();
        boolean overwrite = true;
        //指定 逆向工程配置文件
        File configFile = new File(“council/src/main/resources/configure/generatorConfig.xml“);
        logger.debug(configFile.toString());
        ConfigurationParser cp = new ConfigurationParser(warnings);
        Configuration config = cp.parseConfiguration(configFile);
        DefaultShellCallback callback = new DefaultShellCallback(overwrite);
        MyBatisGenerator myBatisGenerator = new MyBatisGenerator(config
                callback warnings);
        myBatisGenerator.generate(null);
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-01-11 11:57  council\
     目录           0  2017-01-11 11:57  council\.idea\
     目录           0  2017-01-11 11:57  council\.idea\artifacts\
     文件         301  2017-01-05 09:50  council\.idea\artifacts\council_war.xml
     文件        4555  2017-01-05 09:50  council\.idea\artifacts\council_war_exploded.xml
     文件        1190  2017-01-05 09:50  council\.idea\compiler.xml
     目录           0  2017-01-11 11:57  council\.idea\copyright\
     文件          76  2017-01-05 09:50  council\.idea\copyright\profiles_settings.xml
     文件         172  2017-01-05 09:50  council\.idea\encodings.xml
     目录           0  2017-01-11 11:57  council\.idea\libraries\
     文件         538  2017-01-05 09:50  council\.idea\libraries\Maven__aopalliance_aopalliance_1_0.xml
     文件         626  2017-01-05 09:50  council\.idea\libraries\Maven__commons_collections_commons_collections_3_2.xml
     文件         582  2017-01-05 09:50  council\.idea\libraries\Maven__commons_logging_commons_logging_1_2.xml
     文件         517  2017-01-05 09:50  council\.idea\libraries\Maven__com_alibaba_druid_1_0_26.xml
     文件         629  2017-01-05 09:50  council\.idea\libraries\Maven__com_dyuproject_protostuff_protostuff_api_1_0_8.xml
     文件         720  2017-01-05 09:50  council\.idea\libraries\Maven__com_dyuproject_protostuff_protostuff_collectionschema_1_0_8.xml
     文件         636  2017-01-05 09:50  council\.idea\libraries\Maven__com_dyuproject_protostuff_protostuff_core_1_0_8.xml
     文件         657  2017-01-05 09:50  council\.idea\libraries\Maven__com_dyuproject_protostuff_protostuff_runtime_1_0_8.xml
     文件         668  2017-01-05 09:50  council\.idea\libraries\Maven__com_fasterxml_jackson_core_jackson_annotations_2_5_0.xml
     文件         619  2017-01-05 09:50  council\.idea\libraries\Maven__com_fasterxml_jackson_core_jackson_core_2_5_4.xml
     文件         647  2017-01-05 09:50  council\.idea\libraries\Maven__com_fasterxml_jackson_core_jackson_databind_2_5_4.xml
     文件         539  2017-01-05 09:50  council\.idea\libraries\Maven__com_google_code_gson_gson_2_2_2.xml
     文件         602  2017-01-05 09:50  council\.idea\libraries\Maven__javax_servlet_javax_servlet_api_3_1_0.xml
     文件         461  2017-01-05 09:50  council\.idea\libraries\Maven__jstl_jstl_1_2.xml
     文件         479  2017-01-05 09:50  council\.idea\libraries\Maven__junit_junit_4_12.xml
     文件         598  2017-01-05 09:50  council\.idea\libraries\Maven__mysql_mysql_connector_java_5_1_35.xml
     文件         594  2017-01-05 09:50  council\.idea\libraries\Maven__org_apache_commons_commons_pool2_2_4_2.xml
     文件         576  2017-01-05 09:50  council\.idea\libraries\Maven__org_apache_logging_log4j_log4j_api_2_1.xml
     文件         583  2017-01-05 09:50  council\.idea\libraries\Maven__org_apache_logging_log4j_log4j_core_2_1.xml
     文件         538  2017-01-05 09:50  council\.idea\libraries\Maven__org_aspectj_aspectjrt_1_7_4.xml
     文件         566  2017-01-05 09:50  council\.idea\libraries\Maven__org_aspectj_aspectjweaver_1_7_4.xml
............此处省略158个文件信息

评论

共有 条评论