加入Eureka服务注册身份验证;加入敏感配置加密。

This commit is contained in:
李寻欢 2017-12-07 14:23:57 +08:00
parent bab5679b2c
commit c290060ea7
6 changed files with 27 additions and 6 deletions

View File

@ -38,7 +38,28 @@
<groupId>com.baomidou</groupId>
<artifactId>mybatisplus-spring-boot-starter</artifactId>
<version>1.0.5</version>
<exclusions>
<exclusion>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-jdbc</artifactId>
</exclusion>
</exclusions>
</dependency>
<!--连接池-->
<!-- https://mvnrepository.com/artifact/com.zaxxer/HikariCP -->
<dependency>
<groupId>com.zaxxer</groupId>
<artifactId>HikariCP</artifactId>
<!--<version>2.7.4</version>-->
</dependency>
<!--连接池配置加密-->
<!-- https://mvnrepository.com/artifact/com.github.ulisesbocchio/jasypt-spring-boot-starter -->
<dependency>
<groupId>com.github.ulisesbocchio</groupId>
<artifactId>jasypt-spring-boot-starter</artifactId>
<version>1.16</version>
</dependency>
<!--myabtis-plus 代码生成依赖-->
<dependency>
<groupId>org.apache.velocity</groupId>

View File

@ -3,7 +3,7 @@ eureka:
prefer-ip-address: true
client:
serviceUrl:
defaultZone: http://zqxq:mgzqxq1866@localhost:1001/eureka
defaultZone: http://pig:gip6666@localhost:1001/eureka
spring:
application:

View File

@ -3,7 +3,7 @@ eureka:
prefer-ip-address: true
client:
serviceUrl:
defaultZone: http://zqxq:mgzqxq1866@localhost:1001/eureka
defaultZone: http://pig:gip6666@localhost:1001/eureka
spring:
application:

View File

@ -24,5 +24,5 @@ eureka:
prefer-ip-address: true
client:
serviceUrl:
defaultZone: http://zqxq:mgzqxq1866@localhost:1001/eureka
defaultZone: http://pig:gip6666@localhost:1001/eureka

View File

@ -9,8 +9,8 @@ security:
basic:
enabled: true # 启用身份认证
user:
name: zqxq # 定义用户名
password: mgzqxq1866 # 定义密码
name: pig # 定义用户名
password: gip6666 # 定义密码
eureka:
client:

View File

@ -3,7 +3,7 @@ eureka:
prefer-ip-address: true
client:
serviceUrl:
defaultZone: http://zqxq:mgzqxq1866@localhost:1001/eureka
defaultZone: http://pig:gip6666@localhost:1001/eureka
spring:
application: