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
chenhao
hel-developer-guide
Commits
a9cfe1e9
Commit
a9cfe1e9
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
e1551d30
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
database-config.md
后端开发/database-config.md
+19
-2
No files found.
后端开发/database-config.md
View file @
a9cfe1e9
...
...
@@ -3,7 +3,7 @@
## 配置文件
1.
数据源配置
1.
服务
数据源配置
*
融租易默认使用 JNDI 来配置数据源。数据源的配置独立于项目配置
*
默认使用的 JNDI name 为
`jdbc/hel_dev`
*
tomcat 需要配置 context.xml:
...
...
@@ -21,7 +21,7 @@
```
* 其他[应用服务器weblogic](/框架功能描述/deployment.md)等,需要按其配置方法 配置 JNDI
2.
项目
数据源配置
2.
数据库
数据源配置
> 融租易项目根目录的pom.xml中默认包含了 `Oracle`,`Mysql`,`SqlServer` 的 JDBC 驱动,一般不需要改动
* 修改 resources/config.properties
...
...
@@ -39,6 +39,23 @@
```
* 修改完毕后复制一份放到 resources/profiles/dev (覆盖)
3.redis服务配置
修改resources/config.properties:
* 配置单个redis的时候只需配置
```
redis.ip=172.20.0.115
redis.port=6379
redis.db=1
```
* 当配置redis集群时需配置
```
redis.useSentinel=true
redis.sentinel=
\
10.
86.20.183:26379,
\
10.
86.20.184:26379
```
...
...
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