jaoso_config.properties

来自「Jaoso新闻文章发布系统 0.9.1final 程序架构: Struts」· PROPERTIES 代码 · 共 35 行

PROPERTIES
35
字号
# Properties file with JDBC-related settings.
# Applied by PropertyPlaceholderConfigurer from "applicationContext-*.xml".
# Targetted at system administrators, to avoid touching the context XML files.


##如果使用mssqlserver 并且使用jtds驱动请设置为false#####################################################
hibernate.jdbc.use_scrollable_resultset true


###请选择一种数据库将前面的#注释去掉并按你的数据库名称 数据库url 用户名 密码 设置#######################

## MySQL################################################################################################

hibernate.dialect net.sf.hibernate.dialect.MySQLDialect
hibernate.connection.driver_class com.mysql.jdbc.Driver
hibernate.connection.url jdbc:mysql://localhost:3306/jaoso?useUnicode=true&characterEncoding=UTF-8
hibernate.connection.username root
hibernate.connection.password 

## Oracle###############################################################################################

#hibernate.dialect net.sf.hibernate.dialect.Oracle9Dialect
#hibernate.dialect net.sf.hibernate.dialect.OracleDialect
#hibernate.connection.driver_class oracle.jdbc.driver.OracleDriver
#hibernate.connection.username ora
#hibernate.connection.password ora
#hibernate.connection.url jdbc:oracle:thin:@localhost:1521:jaoso

## MS SQL Server########################################################################################

#hibernate.dialect net.sf.hibernate.dialect.SQLServerDialect
#hibernate.connection.username sa
#hibernate.connection.password sa
#hibernate.connection.driver_class net.sourceforge.jtds.jdbc.Driver
#hibernate.connection.url jdbc:jtds:sqlserver://localhost/jaoso;SelectMethod=cursor

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?