`
sophiawhut
  • 浏览: 101361 次
  • 性别: Icon_minigender_2
  • 来自: 北京
社区版块
存档分类
最新评论

"Login Failed: A granted authority textual representation is required"

    博客分类:
  • java
阅读更多

在使用Spring Security配置用户登录时,在测试数据中添加用户信息

username="hlw"

password="hlw"

role=""

 

在测试页面登录时出现错误提示"Login Failed: A granted authority textual representation is required"

 

错误原因:没有给role赋值,即role不能为空

解决方法:给role赋值,例如role=”guest“

分享到:
评论

相关推荐

    新视野大学英语第二册教学4PPT课件.pptx

    * routine care: 例句:It is just a routine medical examination, nothing to get worried about. * routine police inquiries: 例句:The police are making routine inquiries about the incident. * routine ...

    gulp-tasks:项目中使用的常见Gulp.js任务

    任务项目中使用的常见Gulp.js...执照 The MIT License (MIT)Copyright (c) 2015 Agora Inc.Permission is hereby granted, free of charge, to any person obtaining a copyof this software and associated document

    Android代码-Chess Clock App

    Chess Clock App Description: A game-clock app for the Android mobile devices. Useful in blitz chess games and ...Permission is hereby granted, free of charge, to any person obtaining a copy of this soft

    AVG 破解版

    3. The Licensor reserves the right to block accounts/license codes that have not been paid for by the user in due time or that stood out through a very high number of updates until settlement of the ...

    新概念英语二册LessonLessonPPT课件.pptx

    - grant one's request - 同意某人的请求:He granted my request for more time. - send a request for help - 请求帮助:She sent a request for help to Gary. - request sb. to do sth. - 要求某人做...:You...

    Laravel开发-access-granted

    "access-granted" 是一个专门为 Laravel 设计的包,旨在帮助开发者轻松地实现角色和权限管理。下面将详细探讨这个包的功能、安装过程、配置以及如何在实际开发中应用。 一、功能概述 "access-granted" 包提供了一个...

    Cortex™ -A Series Version: 3.0 Programmer’s Guide

    This Cortex-A Series Programmer’s Guide is protected by copyright and the practice or implementation of the information herein may be protected by one or more patents or pending applications. No part...

    A note on property of the Mittag-Leffler function

    Recently the authors have found in some publications that the following property (0.1) of Mittag-Leffler function is taken for granted and used to derive other properties. E alpha (a(t + s)(alpha)...

    Universal-USB-Installer

    the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be ...

    84、用户的授权1

    在本篇文章中,我们将探讨用户授权机制在Symfony 5中的实现,包括如何在Twig模板中使用is_granted()方法来判断用户的角色,并控制评论表单的显示。 首先,我们需要在Twig模板中使用is_granted()方法来判断用户的...

    php代码时间插件

    Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, ...

    WizFlow网页编辑

    When a program is linked with a library, whether statically or using a shared library, the combination of the two is legally speaking a combined work, a derivative of the original library. The ...

    hibernate-shards.jar

    When a program is linked with a library, whether statically or using a shared library, the combination of the two is legally speaking a combined work, a derivative of the original library. The ...

    http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd

    This is SVG, a language for describing two-dimensional graphics in XML. The Scalable Vector Graphics (SVG) Copyright 2001, 2002, 2011 World Wide Web Consortium (Massachusetts Institute of ...

    swift-一行代码获取按A~Z分组精准排序的通讯录联系人Swift版

    这个“swift-一行代码获取按A~Z分组精准排序的通讯录联系人Swift版”项目提供了一个简洁高效的方法来实现这一功能。在iOS应用中,通常会使用`Contacts`框架来访问通讯录,并通过`UITableView`或`UICollectionView`...

    英语四级常考词汇频率统计

    例句:*The university granted him a scholarship.*(大学授予他奖学金。) - **generous**:慷慨的、大方的;例句:*She is always generous with her time.*(她总是大方地付出自己的时间。) - **gather**:聚集...

    GDB调技术教程

    Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation;...

    微软内部资料-SQL性能优化3

    Another type of table lock is a schema stability lock (Sch-S) and is compatible with all table locks except the schema modification lock (Sch-M). The schema modification lock (Sch-M) is incompatible ...

Global site tag (gtag.js) - Google Analytics