配置文件数据库和redis账号密码加密
This commit is contained in:
parent
94552bc1b1
commit
b6b23815d5
|
|
@ -56,6 +56,13 @@
|
|||
<artifactId>lombok</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!--加密依赖包-->
|
||||
<dependency>
|
||||
<groupId>com.github.ulisesbocchio</groupId>
|
||||
<artifactId>jasypt-spring-boot-starter</artifactId>
|
||||
<version>3.0.2</version>
|
||||
</dependency>
|
||||
|
||||
|
||||
</dependencies>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,10 @@
|
|||
package com.bonus.sgzb.auth;
|
||||
|
||||
import org.mybatis.spring.annotation.MapperScan;
|
||||
import com.ulisesbocchio.jasyptspringboot.annotation.EnableEncryptableProperties;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
|
||||
import com.bonus.sgzb.common.security.annotation.EnableRyFeignClients;
|
||||
import org.springframework.context.annotation.ComponentScan;
|
||||
|
||||
/**
|
||||
* 认证授权中心
|
||||
|
|
@ -14,6 +13,7 @@ import org.springframework.context.annotation.ComponentScan;
|
|||
*/
|
||||
@EnableRyFeignClients
|
||||
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
|
||||
@EnableEncryptableProperties
|
||||
public class SgzbAuthApplication {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SgzbAuthApplication.class, args);
|
||||
|
|
|
|||
Loading…
Reference in New Issue