Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
manager
Project
Overview
Details
Activity
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
reyun
manager
Commits
051a2a5a
Commit
051a2a5a
authored
4 years ago
by
xioa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改连接池
parent
4fd3bd02
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
6 deletions
+18
-6
pom.xml
pom.xml
+11
-0
applicationContext.xml
src/main/resources/spring/applicationContext.xml
+7
-6
No files found.
pom.xml
View file @
051a2a5a
...
@@ -68,6 +68,11 @@
...
@@ -68,6 +68,11 @@
<io.username>
root
</io.username>
<io.username>
root
</io.username>
<io.password>
reyun123
</io.password>
<io.password>
reyun123
</io.password>
<etl.url>
jdbc:mysql://172.31.21.91:3306/tkio_stream?characterEncoding=utf-8
</etl.url>
<etl.username>
trackingio_rpt
</etl.username>
<etl.password>
trackingio_rpt
</etl.password>
<qcloudatasource.url>
<qcloudatasource.url>
jdbc:mysql://10.3.20.32:3306/trackingio_test?characterEncoding=utf-8
jdbc:mysql://10.3.20.32:3306/trackingio_test?characterEncoding=utf-8
</qcloudatasource.url>
</qcloudatasource.url>
...
@@ -231,6 +236,12 @@
...
@@ -231,6 +236,12 @@
<io.username>
reyun
</io.username>
<io.username>
reyun
</io.username>
<io.password>
Reyun123
</io.password>
<io.password>
Reyun123
</io.password>
<etl.url>
jdbc:mysql://etl.cma5jkozme68.rds.cn-north-1.amazonaws.com.cn:3306/tkio?characterEncoding=utf-8
</etl.url>
<etl.username>
trackingio_rpt
</etl.username>
<etl.password>
trackingio_rpt
</etl.password>
<qcloudatasource.url>
<qcloudatasource.url>
jdbc:mysql://172.28.16.22:3306/trackingio?characterEncoding=utf-8
jdbc:mysql://172.28.16.22:3306/trackingio?characterEncoding=utf-8
</qcloudatasource.url>
</qcloudatasource.url>
...
...
This diff is collapsed.
Click to expand it.
src/main/resources/spring/applicationContext.xml
View file @
051a2a5a
...
@@ -27,12 +27,7 @@
...
@@ -27,12 +27,7 @@
<context:property-placeholder
location=
"classpath:persistence.properties,classpath:redis.properties"
/>
<context:property-placeholder
location=
"classpath:persistence.properties,classpath:redis.properties"
/>
<bean
id=
"tikoDataSource"
class=
"com.mchange.v2.c3p0.ComboPooledDataSource"
>
<property
name=
"driverClass"
value=
"${dataSource.driverClassName}"
></property>
<property
name=
"jdbcUrl"
value=
"${etl.dataSource.url}"
></property>
<property
name=
"user"
value=
"${etl.dataSource.username}"
></property>
<property
name=
"password"
value=
"${etl.dataSource.password}"
></property>
</bean>
<!-- 将连接池注入 jdbcTemplate -->
<!-- 将连接池注入 jdbcTemplate -->
<bean
id=
"tikoTemplate"
class=
"org.springframework.jdbc.core.JdbcTemplate"
>
<bean
id=
"tikoTemplate"
class=
"org.springframework.jdbc.core.JdbcTemplate"
>
...
@@ -73,6 +68,12 @@
...
@@ -73,6 +68,12 @@
<property
name=
"minEvictableIdleTimeMillis"
value=
"300000"
/>
<property
name=
"minEvictableIdleTimeMillis"
value=
"300000"
/>
</bean>
</bean>
<bean
id=
"tikoDataSource"
parent=
"parentDataSource"
>
<property
name=
"url"
value=
"${etl.dataSource.url}"
></property>
<property
name=
"username"
value=
"${etl.dataSource.username}"
></property>
<property
name=
"password"
value=
"${etl.dataSource.password}"
></property>
</bean>
<bean
id=
"dataSource"
parent=
"parentDataSource"
>
<bean
id=
"dataSource"
parent=
"parentDataSource"
>
<property
name=
"url"
value=
"${default.dataSource.url}"
/>
<property
name=
"url"
value=
"${default.dataSource.url}"
/>
<property
name=
"username"
value=
"${default.dataSource.username}"
/>
<property
name=
"username"
value=
"${default.dataSource.username}"
/>
...
...
This diff is collapsed.
Click to expand it.
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