
开发问题
漫玥刚花
这个作者很懒,什么都没留下…
展开
-
升级到spring security5遇到的坑-密码存储格式
遇到的问题 将spring security oauth2(包括spring security)升级到最新,代码没有改动,运行项目没有报错,但是页面登陆时报错:There is no PasswordEncoder mapped for the id “null”然后一顿百度和google,其中看到两处有帮助的资料: https://www.cnblogs.com/majianming/p/...原创 2018-07-23 17:34:53 · 919 阅读 · 0 评论 -
elcipse 安装lombok插件解决 @Slf4j 等找不到log变量问题
由于最近在弄elastic-job ,在下载源码后会报一些错误,变量log 找不到,没有getter/setter 方法之类的。之前没有接触过lombok ,这次看了些帖子,也只是暂时解决了这样的问题。1.前往官网下载:https://projectlombok.org/downloadlombok.jar2.将lombok.jar放在eclipse的安装目录下。3.在...转载 2019-04-07 17:44:29 · 328 阅读 · 0 评论 -
eclipse环境下报错:log cannot be resolved
在eclipse环境下使用@Slf4j注解时,出现了log cannot be resolved这个异常。经过排查发现是缺少lombok插件的问题。解决方式当然是在eclipse中安装lombok插件啦。安装lombok插件的方法:http://blog.51cto.com/4925054/2127840...转载 2019-04-07 17:37:44 · 912 阅读 · 0 评论 -
SpringBoot开发问题-没有thymeleaf导入页面是无法找到的
1、SpringBoot开发问题-没有thymeleaf导入页面是无法找到的原创 2018-08-13 00:02:58 · 1382 阅读 · 0 评论 -
spring boot启动不扫描创建bean怎么回事
说明你的spring boot启动时的application类不在io.github.gefangshuai.app及其子包下。SpringBoot项目的Bean装配默认规则是根据Application类所在的包位置从上往下扫描的。“Application类”是指SpringBoot项目入口类。如果Application类所在的包为:io.github.gefangshuai.app,则只会扫...原创 2018-08-06 21:56:44 · 3015 阅读 · 0 评论 -
Oauth2:There is no PasswordEncoder mapped for the id "null"
需要添加密码加密算法new BCryptPasswordEncoder().encode("123456")原创 2018-08-09 11:37:15 · 1194 阅读 · 0 评论 -
eclipse +maven +springboot\springcloud打包(含有common、core等依赖包的时候)
在父级项目的pom文件上面加说以下内容:<build> <finalName>${project.artifactId}</finalName> <pluginManagement> <plugins> <plugin> ...原创 2018-07-25 00:13:16 · 5763 阅读 · 0 评论 -
Spring Security 无法登陆,报错:There is no PasswordEncoder mapped for the id “null”
编写好继承了WebSecurityConfigurerAdapter类的WebSecurityConfig类后,我们需要在configure(AuthenticationManagerBuilder auth) 方法中定义认证用于信息获取来源以及密码校验规则等。(configure函数名字不重要,官方用的好像是configureGlobal(……),重要的是在这个被@EnableWebSecuri...原创 2018-07-23 15:47:04 · 163 阅读 · 0 评论 -
Spring Security(07)——缓存UserDetails
Spring Security提供了一个实现了可以缓存UserDetails的UserDetailsService实现类,CachingUserDetailsService。该类的构造接收一个用于真正加载UserDetails的UserDetailsService实现类。当需要加载UserDetails时,其首先会从缓存中获取,如果缓存中没有对应的UserDetails存在,则使用持有的UserD...转载 2018-07-23 16:13:47 · 147 阅读 · 0 评论 -
Maven-No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JD
[INFO] Scanning for projects...[INFO] [INFO] ------------------------------------------------------------------------[INFO] B...转载 2019-04-07 23:05:03 · 275 阅读 · 0 评论