Giter Site home page Giter Site logo

datamining's Introduction

说明介绍

databasedoc是一个简易的将数据库的整个库表的元信息(表信息、字段信息)自动导出到word文档中,用户可以简单的配置就可生成数据库字典。

使用技术

  • 使用刚接触到的Springboot架构了控制层、服务层、dao层的层级结构;
  • 配置使用阿里巴巴的Druid数据连接池;
  • 与word的交互则使用apache开源的poi工具;
  • 日志使用logback

使用方法

  1. 运行方式 java -jar D:/datamining-0.0.1-SNAPSHOT.jar spring.config.location="D:/application.yml"
    其中:
    参数D:/datamining-0.0.1-SNAPSHOT.jar为jar包存放位置;
    参数spring.config.location为外部application配置文件存放的地方;
  2. application配置文件说明 可将代码中的application.yml拷贝至外部,并修改其中的部分参数,说明如下:
    1) spring.datasource.url: 导出数据源的url地址
    2) spring.datasource.driverClassName: 导出数据源的驱动名称
    3) spring.datasource.username: 导出数据源数据库用户名
    4) spring.datasource.password: 导出数据源数据库密码
    5) targetPath: 目标word存放路径和名称
    不同数据源的数据连接配置不同,大家可以根据阿里巴巴的Druid数据连接不同数据源来配置,示例如下:
    1) mysql数据库
    spring.datasource.url: jdbc:mariadb://ip:port/base?autoReconnect=true&autoReconnectForPools=true&useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true
    spring.datasource.driverClassName: org.mariadb.jdbc.Driver
    spring.datasource.username: username spring.datasource.password: password
    2) oracle数据库
    spring.datasource.url: jdbc:oracle:thin:@ip:port:sid
    spring.datasource.driverClassName: oracle.jdbc.driver.OracleDriver
    spring.datasource.username: username spring.datasource.password: password
    3) sqlserver数据库
    spring.datasource.url: jdbc:sqlserver://ip:port;DatabaseName=base
    spring.datasource.driverClassName: com.microsoft.sqlserver.jdbc.SQLServerDriver
    spring.datasource.username: username spring.datasource.password: password

word效果

datamining's People

Contributors

janelee2 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.