`
sophiawhut
  • 浏览: 100230 次
  • 性别: 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“

分享到:
评论

相关推荐

    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 ...

    RACF Security Administrator's Guide

    Group administrators have been granted specific authority (not usually granted to users) to perform security-related tasks related to a RACF group, or a RACF group's resources. Note: This document ...

    Molecular Biology Problem Solver - A Laboratory Guide.pdf 下载

    • Clarify theory and practice that is taken for granted yet fre- quently misapplied. Why is this book organized as a series of questions? For one, the researchers (and people in general) who greatly ...

    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...

    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 ...

    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, ...

    gawk用户手册(英文版)

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

    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 ...

    微软内部资料-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 ...

    How Software Works

    How Software Works breaks down these processes with patient explanations and intuitive diagrams so that anyone can understand—no technical background is required, and you won’t be reading through ...

    WebBrowserEx

    If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not...

    iTunesConnect_DeveloperGuide

    with the fol- lowing exceptions: Any person is hereby authorized to store documentation on a single computer for personal use only and to print copies of documentation for personal use provided that ...

    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;...

    BmdThread_1.9_XE4_Win32

    Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The...

    The Illustrated Wavelet Transform Handbook

    It might be taken for granted that illustrations can aid in the understanding of a subject matter as this, but there is sound logical reasoning behind this claim that makes it especially true for ...

Global site tag (gtag.js) - Google Analytics