Commit bc8d1e7d by 共享中心代码生成

Merge branch 'feature_protocol' into 'master'

Feature protocol

See merge request mall/arch/matrix!50
parents 954b6514 0a5863cb
...@@ -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) {
......
...@@ -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>
......
...@@ -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");
} }
......
...@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment