Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
commons
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DevOps
commons
Commits
2b4dee9a
Commit
2b4dee9a
authored
Mar 13, 2018
by
zero-mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去掉DynamicDataSourceRegister的@Configuration注解,避免自动生效
parent
2435dae8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
DynamicDataSourceRegister.java
...java/cn/quantgroup/tech/db/DynamicDataSourceRegister.java
+2
-2
No files found.
commons-spring/src/main/java/cn/quantgroup/tech/db/DynamicDataSourceRegister.java
View file @
2b4dee9a
...
@@ -5,6 +5,7 @@ import org.springframework.beans.MutablePropertyValues;
...
@@ -5,6 +5,7 @@ import org.springframework.beans.MutablePropertyValues;
import
org.springframework.beans.PropertyValues
;
import
org.springframework.beans.PropertyValues
;
import
org.springframework.beans.factory.support.BeanDefinitionRegistry
;
import
org.springframework.beans.factory.support.BeanDefinitionRegistry
;
import
org.springframework.beans.factory.support.GenericBeanDefinition
;
import
org.springframework.beans.factory.support.GenericBeanDefinition
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnProperty
;
import
org.springframework.boot.autoconfigure.jdbc.DataSourceBuilder
;
import
org.springframework.boot.autoconfigure.jdbc.DataSourceBuilder
;
import
org.springframework.boot.bind.RelaxedDataBinder
;
import
org.springframework.boot.bind.RelaxedDataBinder
;
import
org.springframework.boot.bind.RelaxedPropertyResolver
;
import
org.springframework.boot.bind.RelaxedPropertyResolver
;
...
@@ -26,12 +27,11 @@ import java.util.Map;
...
@@ -26,12 +27,11 @@ import java.util.Map;
* @author ag
* @author ag
*/
*/
@Slf4j
@Slf4j
@Configuration
public
class
DynamicDataSourceRegister
implements
ImportBeanDefinitionRegistrar
,
EnvironmentAware
{
public
class
DynamicDataSourceRegister
implements
ImportBeanDefinitionRegistrar
,
EnvironmentAware
{
private
ConversionService
conversionService
=
new
DefaultConversionService
();
private
ConversionService
conversionService
=
new
DefaultConversionService
();
/**
/**
* 默认的数据库连接池类型
* 默认的数据
lter
库连接池类型
*/
*/
private
static
final
String
DATASOURCE_TYPE_DEFAULT
=
"com.zaxxer.hikari.HikariDataSource"
;
private
static
final
String
DATASOURCE_TYPE_DEFAULT
=
"com.zaxxer.hikari.HikariDataSource"
;
/**
/**
...
...
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