Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
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
fangxinjiang
yifu-mvp
Commits
7916ff94
Commit
7916ff94
authored
Apr 06, 2024
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商险调整
parent
0779a98c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
EkpDataSourceConfig.java
...d/plus/v1/yifu/insurances/config/EkpDataSourceConfig.java
+4
-0
No files found.
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/config/EkpDataSourceConfig.java
View file @
7916ff94
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
insurances
.
config
;
import
com.alibaba.fastjson.JSON
;
import
com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor
;
import
com.baomidou.mybatisplus.extension.spring.MybatisSqlSessionFactoryBean
;
import
com.yifu.cloud.plus.v1.yifu.common.mybatis.plugins.YifuPaginationInnerInterceptor
;
import
lombok.extern.log4j.Log4j2
;
import
org.apache.ibatis.session.SqlSessionFactory
;
import
org.mybatis.spring.SqlSessionTemplate
;
import
org.mybatis.spring.annotation.MapperScan
;
...
...
@@ -23,6 +25,7 @@ import javax.sql.DataSource;
* @description TODO
* @date 2022-08-25 17:03:43
*/
@Log4j2
@Configuration
@MapperScan
(
basePackages
=
"com.yifu.cloud.plus.v1.yifu.insurances.mapper.ekp"
,
sqlSessionTemplateRef
=
"ekpSqlSessionTemplate"
,
sqlSessionFactoryRef
=
"ekpSqlSessionFactory"
)
public
class
EkpDataSourceConfig
{
...
...
@@ -46,6 +49,7 @@ public class EkpDataSourceConfig {
public
SqlSessionFactory
ekpSqlSessionFactory
(
@Qualifier
(
"ekpDataSource"
)
DataSource
dataSource
)
throws
Exception
{
MybatisSqlSessionFactoryBean
bean
=
new
MybatisSqlSessionFactoryBean
();
bean
.
setDataSource
(
dataSource
);
log
.
error
(
JSON
.
toJSONString
(
"商险EKP数据库:"
+
DataSource
));
//添加XML目录
ResourcePatternResolver
resolver
=
new
PathMatchingResourcePatternResolver
();
try
{
...
...
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