加入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> <groupId>com.baomidou</groupId>
<artifactId>mybatisplus-spring-boot-starter</artifactId> <artifactId>mybatisplus-spring-boot-starter</artifactId>
<version>1.0.5</version> <version>1.0.5</version>
<exclusions>
<exclusion>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-jdbc</artifactId>
</exclusion>
</exclusions>
</dependency> </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 代码生成依赖--> <!--myabtis-plus 代码生成依赖-->
<dependency> <dependency>
<groupId>org.apache.velocity</groupId> <groupId>org.apache.velocity</groupId>

View File

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

View File

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

View File

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

View File

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

View File

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