Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
matrix
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
mall
arch
matrix
Commits
bc8d1e7d
Commit
bc8d1e7d
authored
Jan 08, 2020
by
共享中心代码生成
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature_protocol' into 'master'
Feature protocol See merge request mall/arch/matrix!50
parents
954b6514
0a5863cb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
6 deletions
+8
-6
EncryptorFactory.java
matrix-datasource/matrix-datasource-core/src/main/java/com/secoo/mall/datasource/factory/EncryptorFactory.java
+1
-0
pom.xml
matrix-datasource/pom.xml
+0
-5
MatrixMybatisAutoConfiguration.java
matrix-mybatis/matrix-mybatis-starter/src/main/java/com/secoo/mall/mybatis/spring/boot/autoconfigure/MatrixMybatisAutoConfiguration.java
+1
-1
pom.xml
pom.xml
+6
-0
No files found.
matrix-datasource/matrix-datasource-core/src/main/java/com/secoo/mall/datasource/factory/EncryptorFactory.java
View file @
bc8d1e7d
...
@@ -104,6 +104,7 @@ public class EncryptorFactory<T> {
...
@@ -104,6 +104,7 @@ public class EncryptorFactory<T> {
* 如果无法从远程创建解密对象,则进行降级处理
* 如果无法从远程创建解密对象,则进行降级处理
*/
*/
if
(
Objects
.
isNull
(
encryptor
))
{
if
(
Objects
.
isNull
(
encryptor
))
{
log
.
warn
(
"load remote encryptor fail.use default encryptor"
);
encryptor
=
new
Encryptor
<
T
>()
{
encryptor
=
new
Encryptor
<
T
>()
{
@Override
@Override
public
T
encrypt
(
T
value
)
{
public
T
encrypt
(
T
value
)
{
...
...
matrix-datasource/pom.xml
View file @
bc8d1e7d
...
@@ -33,11 +33,6 @@
...
@@ -33,11 +33,6 @@
<artifactId>
app-security-api
</artifactId>
<artifactId>
app-security-api
</artifactId>
<version>
1.0.6.RELEASE
</version>
<version>
1.0.6.RELEASE
</version>
</dependency>
</dependency>
<dependency>
<groupId>
mysql
</groupId>
<artifactId>
mysql-connector-java
</artifactId>
<version>
5.1.47
</version>
</dependency>
</dependencies>
</dependencies>
</dependencyManagement>
</dependencyManagement>
<dependencies>
<dependencies>
...
...
matrix-mybatis/matrix-mybatis-starter/src/main/java/com/secoo/mall/mybatis/spring/boot/autoconfigure/MatrixMybatisAutoConfiguration.java
View file @
bc8d1e7d
...
@@ -58,7 +58,7 @@ public class MatrixMybatisAutoConfiguration {
...
@@ -58,7 +58,7 @@ public class MatrixMybatisAutoConfiguration {
@Bean
@Bean
@ConditionalOnMissingBean
(
DataSource
.
class
)
@ConditionalOnMissingBean
(
DataSource
.
class
)
public
DataSource
dataSource
()
{
public
DataSource
dataSource
()
{
return
new
MatrixDataSource
(
"
01-rw
"
);
return
new
MatrixDataSource
(
"
default
"
);
}
}
...
...
pom.xml
View file @
bc8d1e7d
...
@@ -33,7 +33,13 @@
...
@@ -33,7 +33,13 @@
<dependencyManagement>
<dependencyManagement>
<!--在spring boot相关包前置,规定引入顺序 -->
<dependencies>
<dependencies>
<dependency>
<groupId>
mysql
</groupId>
<artifactId>
mysql-connector-java
</artifactId>
<version>
5.1.47
</version>
</dependency>
<!-- Spring Boot -->
<!-- Spring Boot -->
<dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<groupId>
org.springframework.boot
</groupId>
...
...
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