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
2845a5d5
Commit
2845a5d5
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
26cd04a9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
database-config.md
后端开发/database-config.md
+6
-4
No files found.
后端开发/database-config.md
View file @
2845a5d5
# Oracle,MySql,Sqlserver数据库配置
##配置文件
##
配置文件
1.
数据源配置
*
融租易默认使用 JNDI 来配置数据源。数据源的配置独立于项目配置
...
...
@@ -21,19 +21,21 @@
```
*
其他
[
应用服务器weblogic
](
/框架功能描述/deployment.md
)
等,需要按其配置方法 配置 JNDI
2.
多数据库
配置
2.
项目数据源
配置
> 融租易项目根目录的pom.xml中默认包含了 `Oracle`,`Mysql`,`SqlServer` 的 JDBC 驱动,一般不需要改动
*
修改 resources/config.properties
*
当数据库为 oracle 时
```
db.type=oracle
db.jndiName=java:comp/env/jdbc/hel_dev
mybatis.identity=SEQUENCE
```
*
修改 db.type
*
当数据库为mysql时
```
db.type=mysql
# 针对不同的数据库,可选 mysql,oracle,mssql
db.jndiName=java:comp/env/jdbc/hel_dev
```
*
修改完毕后复制一份放到 resources/profiles/dev (覆盖)
...
...
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