29 lines
785 B
Java
29 lines
785 B
Java
package com.bwie.auth;
|
||
|
||
import org.springframework.boot.SpringApplication;
|
||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||
import org.springframework.cloud.openfeign.EnableFeignClients;
|
||
import org.springframework.context.annotation.Bean;
|
||
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
|
||
|
||
/**
|
||
* @Author:蓬叁
|
||
* @Package:com.bwie.auth
|
||
* @Project:maven-week2-exam
|
||
* @name:AuthApplication
|
||
* @Date:2024/7/30 上午9:29
|
||
*/
|
||
@SpringBootApplication
|
||
@EnableFeignClients
|
||
public class AuthApplication {
|
||
public static void main(String[] args) {
|
||
SpringApplication.run(AuthApplication.class,args);
|
||
}
|
||
|
||
@Bean
|
||
public BCryptPasswordEncoder bCryptPasswordEncoder(){
|
||
return new BCryptPasswordEncoder();
|
||
}
|
||
|
||
}
|