Commit 7a1ec09d by 袁伟铭

app登录的时候添加系统用户

parent 79799b85
...@@ -4,10 +4,7 @@ import org.mybatis.spring.annotation.MapperScan; ...@@ -4,10 +4,7 @@ import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient; import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableScheduling; import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;
@EnableScheduling @EnableScheduling
@MapperScan("com.zq.user.dao") @MapperScan("com.zq.user.dao")
...@@ -19,9 +16,4 @@ public class UserApplication { ...@@ -19,9 +16,4 @@ public class UserApplication {
SpringApplication.run(UserApplication.class, args); SpringApplication.run(UserApplication.class, args);
} }
@Bean
public PasswordEncoder passwordEncoder() {
// 密码加密方式后台管理密码加密
return new BCryptPasswordEncoder();
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment