Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
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
haoban3.0
haoban-manage3.0
Commits
d591479f
Commit
d591479f
authored
Mar 28, 2023
by
songyinghui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: haoban manager 接入shard 测试
parent
eba2528a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
57 additions
and
1 deletions
+57
-1
pom.xml
haoban-manage3-service/pom.xml
+6
-0
applicationContext-conf.xml
...e3-service/src/main/resources/applicationContext-conf.xml
+3
-1
jdbc-haoban-manage-service-sharding.xml
...rc/main/resources/jdbc-haoban-manage-service-sharding.xml
+48
-0
No files found.
haoban-manage3-service/pom.xml
View file @
d591479f
...
...
@@ -174,6 +174,12 @@
<version>
${gic-thirdparty-sdk}
</version>
<scope>
compile
</scope>
</dependency>
<dependency>
<groupId>
com.gic
</groupId>
<artifactId>
gic-sharding-sdk
</artifactId>
<version>
3.0-SNAPSHOT
</version>
</dependency>
</dependencies>
<build>
...
...
haoban-manage3-service/src/main/resources/applicationContext-conf.xml
View file @
d591479f
...
...
@@ -8,6 +8,7 @@
<import
resource=
"classpath*:kafka-setting.xml"
/>
<import
resource=
"classpath:dubbo-haoban-manage-service.xml"
/>
<import
resource=
"classpath:dubbo-setting-test.xml"
/>
<import
resource=
"classpath:jdbc-haoban-manage-service.xml"
/>
<!-- <import resource="classpath:jdbc-haoban-manage-service.xml" />-->
<import
resource=
"classpath*:jdbc-haoban-manage-service-sharding.xml"
/>
<import
resource=
"classpath*:log-record-init.xml"
/>
</beans>
\ No newline at end of file
haoban-manage3-service/src/main/resources/jdbc-haoban-manage-service-sharding.xml
0 → 100644
View file @
d591479f
<?xml version="1.0" encoding="UTF-8"?>
<beans
xmlns=
"http://www.springframework.org/schema/beans"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns:context=
"http://www.springframework.org/schema/context"
xmlns:tx=
"http://www.springframework.org/schema/tx"
xsi:schemaLocation=
"http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx.xsd"
>
<context:annotation-config
/>
<!-- <import resource="classpath*:applicationContext-db-only-with-emoji.xml"/>-->
<import
resource=
"classpath*:applicationContext-sharding-db-mybatis.xml"
/>
<bean
class=
"com.gic.haoban.common.init.HaobanSqlSessionFactoryBean"
id=
"sqlSessionFactory"
>
<property
name=
"dataSource"
ref=
"dataSource"
/>
<property
name=
"typeAliasesPackage"
value=
"com.gic.haoban.**.entity,com.gic.haoban.*.entity"
/>
<property
name=
"mapperLocations"
value=
"classpath*:mapper/**/*.xml"
/>
<property
name=
"plugins"
>
<array>
<bean
class=
"com.github.pagehelper.PageHelper"
>
<property
name=
"properties"
>
<value>
dialect=mysql
</value>
</property>
</bean>
</array>
</property>
</bean>
<bean
class=
"org.mybatis.spring.mapper.MapperScannerConfigurer"
>
<property
name=
"basePackage"
value=
"com.gic.haoban.**.dao.mapper,com.gic.haoban.*.mapper"
/>
<property
name=
"sqlSessionFactoryBeanName"
value=
"sqlSessionFactory"
/>
</bean>
<bean
class=
"org.springframework.jdbc.datasource.DataSourceTransactionManager"
>
<property
name=
"dataSource"
ref=
"dataSource"
/>
</bean>
<!-- 事务管理器 -->
<bean
id=
"txManager"
class=
"org.springframework.jdbc.datasource.DataSourceTransactionManager"
>
<property
name=
"dataSource"
ref=
"dataSource"
/>
</bean>
<tx:annotation-driven
transaction-manager=
"txManager"
/>
</beans>
\ No newline at end of file
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