Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hel-developer-guide
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Spencer Chang
hel-developer-guide
Commits
26cd04a9
Commit
26cd04a9
authored
Aug 03, 2017
by
高洋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updates 后端开发/database-config.md
Auto commit by GitBook Editor
parent
b0dab278
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
database-config.md
后端开发/database-config.md
+2
-8
No files found.
后端开发/database-config.md
View file @
26cd04a9
...
@@ -19,10 +19,10 @@
...
@@ -19,10 +19,10 @@
```
```
<Resource auth="Container" driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver" url="jdbc:sqlserver://127.0.0.1:1433; DatabaseName=hel" name="jdbc/hel_dev" type="javax.sql.DataSource" username="hel_dev" password="hel_dev"/>
<Resource auth="Container" driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver" url="jdbc:sqlserver://127.0.0.1:1433; DatabaseName=hel" name="jdbc/hel_dev" type="javax.sql.DataSource" username="hel_dev" password="hel_dev"/>
```
```
*
其他
应用服务器 weblogic
等,需要按其配置方法 配置 JNDI
*
其他
[
应用服务器weblogic
](
/框架功能描述/deployment.md
)
等,需要按其配置方法 配置 JNDI
2.
多数据库配置
2.
多数据库配置
>
hap 项目 根目录 的 pom.xml
中默认包含了 `Oracle`,`Mysql`,`SqlServer` 的 JDBC 驱动,一般不需要改动
>
融租易项目根目录的pom.xml
中默认包含了 `Oracle`,`Mysql`,`SqlServer` 的 JDBC 驱动,一般不需要改动
*
修改 resources/config.properties
*
修改 resources/config.properties
*
当数据库为 oracle 时
*
当数据库为 oracle 时
...
@@ -36,12 +36,6 @@
...
@@ -36,12 +36,6 @@
# 针对不同的数据库,可选 mysql,oracle,mssql
# 针对不同的数据库,可选 mysql,oracle,mssql
```
```
*
修改完毕后复制一份放到 resources/profiles/dev (覆盖)
*
修改完毕后复制一份放到 resources/profiles/dev (覆盖)
3.
~~liquibase配置文件~~
*
~~hap-parent/hap/src/java/com/hand/hap/db/liquibase.groovy~~
*
~~新建项目,请修改 {root}/core/src/java/{package}/db/liquibase.groovy~~
*
~~需要修改上面文件中的数据库类型 :
`oracle`
,
`mysql`
,
`sqlserver`
~~
> 步骤 3 :在 2.0版,2016-10月份开始, 已经不需要了, 现在可以根据 db.url 参数自动识别数据库类型
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment