Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
topsun-bpm
Project
Project
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
鲁鑫
topsun-bpm
Commits
25bcc674
Commit
25bcc674
authored
Dec 25, 2023
by
鲁鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
配置多数据源11
parent
8a1d712b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
spring-dataSource.xml
...xt/src/main/resources/config/spring/spring-dataSource.xml
+5
-5
No files found.
topsun-xt/src/main/resources/config/spring/spring-dataSource.xml
View file @
25bcc674
...
...
@@ -43,7 +43,7 @@
<!--property name="keepAlive" value="true"/>-->
</bean>
<bean
id=
"hanaDataSource"
class=
"com.alibaba.druid.pool.DruidDataSource"
init-method=
"init"
destroy-method=
"close"
>
<
!--<
bean id="hanaDataSource" class="com.alibaba.druid.pool.DruidDataSource" init-method="init" destroy-method="close">
<property name="url" value="${hana.db.url}"/>
<property name="username" value="${hana.db.user}"/>
<property name="password" value="${hana.db.password}"/>
...
...
@@ -52,7 +52,7 @@
<property name="maxActive" value="20"/>
<property name="initialSize" value="1"/>
<!--<property name="maxWait" value="60000"/>-->
<!–<property name="maxWait" value="60000"/>–>
<property name="maxWait" value="20000"/>
<property name="minIdle" value="1"/>
...
...
@@ -68,8 +68,8 @@
<property name="maxOpenPreparedStatements" value="20"/>
<property name="asyncInit" value="true"/>
<!--property name="keepAlive" value="true"/>-->
</bean>
<!–property name="keepAlive" value="true"/>–>
</bean>
-->
<bean
id=
"lobHandler"
lazy-init=
"true"
class=
"com.alibaba.druid.support.spring.DruidLobHandler"
>
</bean>
...
...
@@ -96,7 +96,7 @@
<bean
id=
"dataSource"
class=
"com.huigou.topsun.dataSource.DynamicDataSource"
>
<property
name=
"targetDataSources"
>
<map
key-type=
"java.lang.String"
>
<
entry
key=
"hanaDataSource"
value-ref=
"hanaDataSource"
/
>
<
!--<entry key="hanaDataSource" value-ref="hanaDataSource"/>--
>
<entry
key=
"mysqlDataSource"
value-ref=
"mysqlDataSource"
/>
</map>
</property>
...
...
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