mirror of https://gitee.com/maxjhandsome/pig
加入Eureka服务注册身份验证;加入敏感配置加密。
This commit is contained in:
parent
bab5679b2c
commit
c290060ea7
|
@ -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>
|
||||||
|
|
|
@ -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:
|
||||||
|
|
|
@ -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:
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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:
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue