security工作笔记003---SpringSecurity框架启动报错.bcrypt.BCryptPasswordEncoder‘ that could not be found.
JAVA技术交流QQ群:170933152
醉了,一般这个注入不都是在类顶上注入嘛,这个可好,跑到
ScAuthApplication 中去注入了。。搞了半天,也记录一下吧
这里先说一下,其实就是在启动类中,去配置:
package cn.gov.rongcheng.scauth;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
@SpringBootApplication
public class ScAuthApplication {
//1........加上这个Bean注入这个就好了.
@Bean
public BCryptPasswordEncoder bCryptPasswordEncoder(){ //这里注入了就可以了
return new BCryptPasswordEncoder();
}
public static void main(String[] args) {
SpringApplication.run(ScAuthApplication.class, args);
}
security工作笔记003---SpringSecurity框架启动报错.bcrypt.BCryptPasswordEncoder‘ that could not be found.相关推荐
- Nuxt.js框架启动报错✖ 224 problems (146 errors, 78 warnings) 146 errors and 74 warnings potentially fixab
项目运行报错 执行npm run lint --fix报错 ✖ 224 problems (146 errors, 78 warnings) 146 errors and 74 warnings ...
- SpringCloud工作笔记061---springBoot maven 打包jar报错_serverEndpointExporter
JAVA技术交流QQ群:170933152 代码可以正常运行,websocket也是正常工作,但打包成jar就会报如下错误 Error starting ApplicationContext. To ...
- SpringCloud工作笔记087---SpringBoot启动报错:IDEA 错误: 找不到或无法加载主类 解决方法_connected to the target VM, address:
技术交流QQ群[JAVA,C++,Python,.NET,BigData,AI]:170933152 idea 直接运行 springbootAplication 启动类,无法启动web项目,也没有报 ...
- spring boot 启动报错:No qualifying bean of type org.springframework.security.oauth2.provider.token.Toke
spring boot启动报错: Exception encountered during context initialization - cancelling refresh attempt: o ...
- 应用时间线服务器启动报错_从服务器到无服务器的时间轴和教程
应用时间线服务器启动报错 Amazon Web Services is a behemoth powering companies from Fortune 500 corporations to h ...
- 项目启动报错:Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedd
一 .项目启动报错,错误信息截图如下: 经过对错误信息的分析判断是数据源配置出现错误,提示说没有配置数据源的URL路径,但是实际上我的项目中已经配置了数据源,如下: 经过多方询问最后发现在yml文件中 ...
- linux启动报错+centos关闭和开启ipv6
LINUX启动报错,dmesg | grep -i erro 当前位置:洪哥笔记 >Linux >centos 6关闭或开启ipv6 centos 6关闭或开启ipv6 关键词 ipv6 ...
- kali BEEF-XSS启动报错解决
kali Linux自带BEEF框架,长时间搁置后启动报错: root@kali:/usr/share/beef-xss# ./beef Traceback (most recent call las ...
- ElasticSearch启动报错,报ERROR: [3] bootstrap checks failed
ElasticSearch启动报错,报ERROR: [3] bootstrap checks failed 新装es启动时,会遇到以下错误情况: ERROR: [3] bootstrap checks ...
最新文章
- 如何从零开始设计与开发一款通用模型预测调度系统 | 干货分享
- oracle客户端没有装exp,oracle 10G 客户端安装后,尝试 exp 命令报错, 求解
- 过年(2015)读书笔记
- linux 0.11 源码学习(二)
- twitter.common.concurrent deadline and defer
- 仿iReader-按menu键弹出PopupWindow布局界面
- python面试题之简要描述Python的垃圾回收机制(garbage collection)
- 动态添加select2input没样式_MIUI10壁纸升级:桌面动效壁纸与动态壁纸的前世今生...
- SQLServer2008设置开启INTERNET远程连接
- Linux软件包管理神器--YUM
- java 设置excel颜色_Java 设置Excel图表背景填充(颜色、图片填充)
- 什么软件能测试电脑能不能玩lol,怎么测试自己电脑能不能玩英雄联盟
- Word文档压缩的方法
- go语言学习-多重返回和匿名变量
- 古诗词在线起名 - 一刀工具箱
- 懒惰删除JAVA,Redis的新特性懒惰删除Lazy Free详解
- groupby后选取列和不选取列的区别
- iphone开发 图片存相册
- 报错笔记-[error] 1615#0: *14 open() “/usr/local/nginx/html/course/zk.jpg“ failed (2: No such file or dir
- c语言五子棋毕业设计,基于c语言五子棋小游戏--本科生毕业设计.doc
热门文章
- 用最简单直白的人类语言解释下jsonP到底是什么鬼
- Spring事务管理的demo
- 开发利器之IntelliJ IDEA学习笔记
- 解决mac使用svn: E170000: Unrecognized URL scheme for h
- Java:多线程模拟多站点售票过程
- windows 系统更新 WSUS的安装与部属
- python高级-------python2.7教程学习【廖雪峰版】(四)
- ruby require
- Android单元测试 - Sqlite、SharedPreference、Assets、文件操作 怎么测?
- div中嵌套div水平垂直居中