Git Product home page Git Product logo

sqlserv-conn's Introduction

说明

当前项目属于 energyScreen 项目的子集,用来提供sqlServer数据库数据的获取。
后期可以扩展为其他项目使用。

准备

  1. 安装 jdk1.8,下载地址: https://www.oracle.com/java/technologies/javase-jdk8-downloads.html
  2. 下载 sqljdbc4.jar,下载地址: https://pan.baidu.com/s/1MxUAJf6rj1JWwAkigO0lTA 提取码: 3kdt
  3. mvn 导入driver: mvn install:install-file -Dfile=sqljdbc4.jar -Dpackaging=jar -DgroupId=com.microsoft.sqlserver -DartifactId=sqljdbc4 -Dversion=4.0

pom.xml 添加依赖

<!-- SqlServer -->
<dependency>
    <groupId>com.microsoft.sqlserver</groupId>
    <artifactId>sqljdbc4</artifactId>
    <version>4.0</version>
</dependency>

application.properties 添加配置

#spring.datasource.url=jdbc:sqlserver://IP:端口;DatabaseName=数据名
#spring.datasource.username=用户名
#spring.datasource.password=密码
#spring.datasource.driver-class-name=com.microsoft.sqlserver.jdbc.SQLServerDriver

WQDQ: 指数据库的SID

运行

nohup java -Dspring.profiles.active=prod -jar sqlserv-conn-1.0.jar &

sqlserv-conn's People

Contributors

uncarman avatar

Watchers

James Cloos avatar  avatar

Forkers

mx1014

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.