点击这里给我发消息 点击这里给我发消息

JDBC Hibernate 连接数据库连接字符串大全

添加时间:2013-12-7
    相关阅读: 数据库 SQL MSSQL Oracle

    Java代码
    # Application configuration properties file

    ### Database configuration properties ###

    # Database user name
    database.username=${database.username}

    # Database user password
    database.password=${database.password}

    # Database URL (this parameter is specific to your database type)
    # Examples:
    #   Firebird:
    #     jdbc:firebirdsql:127.0.0.1/3050:/firebird/db.gdb
    #   MS SQL:
    #     jdbc:jtds:sqlserver://127.0.0.1:1433/dealerportal;charset=Cp1251
    #   MySQL:
    #     jdbc:mysql://127.0.0.1/db?autoReconnect=true&sessionVariables=sql_mode='PIPES_AS_CONCAT'
    #   Oracle:
    #     jdbc:oracle:thin:@127.0.0.1:1521:db
    #   PostgreSQL:
    #     jdbc:postgresql://127.0.0.1:5432/db?charSet=KOI8
    #   Sybase:
    #     jdbc:sybase:Tds:127.0.0.1:2048?CHARSET=cp1251
    database.url=${database.url}

    # Database driver class (this parameter is specific to your database driver)
    # Examples:
    #   Firebird:
    #     org.firebirdsql.jdbc.FBDriver
    #   MS SQL:
    #     net.sourceforge.jtds.jdbc.Driver
    #   MySQL:
    #     org.gjt.mm.mysql.Driver
    #   Oracle:
    #     oracle.jdbc.OracleDriver
    #   PostgreSQL:
    #     org.postgresql.Driver
    #   Sybase:
    #     com.sybase.jdbc2.jdbc.SybDriver
    database.driver=${database.driver}

    # Database dialect (use appropriate Hibernate dialect class from org.hibernate.dialect package)
    # Examples:
    #   Firebird:
    #
    #   MS SQL:
    #     org.hibernate.dialect.SQLServerDialect        - MSSQL Server
    #   MySQL:
    #     org.hibernate.dialect.MySQLDialect            - Generic MySQL
    #     org.hibernate.dialect.MySQLInnoDBDialect      - MySQL InnoDB
    #     org.hibernate.dialect.MySQLMyISAMDialect      - MySQL MyISA
    #   Oracle:
    #     org.hibernate.dialect.Oracle9Dialect          - Oracle 9
    #     org.hibernate.dialect.OracleDialect           - Generic Oracle (prior to 9)
    #   PostgreSQL:
    #     org.hibernate.dialect.PostgreSQLDialect
    #   Sybase:
    #     org.hibernate.dialect.Sybase11Dialect         - Sybase 11
    #     org.hibernate.dialect.SybaseAnywhereDialect   - Sybase Anywhere
    #     org.hibernate.dialect.SybaseDialect           - Generic Sybase
    database.dialect=${database.dialect}

    # Show SQL queries (true/false)
    database.show_sql=${database.show_sql}

    # Minimum database connections pool size
    database.pool.min_size=${database.pool.min_size}

    # Maximum database connections pool size. Too small value may affect application performance
    database.pool.max_size=${database.pool.max_size}

    ### Mail configuration properties ###

    # SMTP host
    mail.host=${mail.host}

    # User login
    mail.username=${mail.username}

    # User password
    mail.password=${mail.password}

    ### MarketerNet configuration properties ###

    # Domain login
    marketernet.domain.login=${marketernet.domain.login}

    # Domain password
    marketernet.domain.password=${marketernet.domain.password}

    # Domain name
    marketernet.domain.name=${marketernet.domain.name}

    # Application login
    marketernet.application.login=${marketernet.application.login}

    # Application password
    marketernet.application.password=${marketernet.application.password}

    ### News Grabber configuration properties ###

    # News grabber target url
    newsgrabber.target.url=${newsgrabber.target.url}

    # News garbber repeat link times
    newsgrabber.repeat.link.times=${newsgrabber.repeat.link.times}

    # Task newsgrabber trigger cron
    task.newsgrabber.cron=${task.newsgrabber.cron}

咨询热线:020-85648757 85648755 85648616 0755-27912581 客服:020-85648756 0755-27912581 业务传真:020-32579052
广州市网景网络科技有限公司 Copyright◎2003-2008 Veelink.com. All Rights Reserved.
广州商务地址:广东省广州市黄埔大道中203号(海景园区)海景花园C栋501室
= 深圳商务地址:深圳市宝源路华丰宝源大厦606
研发中心:广东广州市天河软件园海景园区 粤ICP备05103322号 工商注册