34 lines
997 B
Java
34 lines
997 B
Java
package com.muyu;
|
|
|
|
import org.junit.jupiter.api.Test;
|
|
import org.springframework.boot.SpringApplication;
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
|
|
import org.springframework.cloud.openfeign.EnableFeignClients;
|
|
import org.springframework.context.annotation.Bean;
|
|
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
|
|
|
|
import java.util.Random;
|
|
|
|
/**
|
|
* @version 1.0
|
|
* @Author xie ya ru
|
|
* @Data 2024/7/10
|
|
* @注释
|
|
*/
|
|
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
|
|
@EnableFeignClients("com.muyu.**.remote")
|
|
public class AuthApplication {
|
|
public static void main(String[] args) {
|
|
SpringApplication.run(AuthApplication.class,args);
|
|
}
|
|
|
|
@Bean
|
|
public BCryptPasswordEncoder bCryptPasswordEncoder(){
|
|
BCryptPasswordEncoder bCryptPasswordEncoder = new BCryptPasswordEncoder();
|
|
return bCryptPasswordEncoder;
|
|
}
|
|
|
|
|
|
}
|