`
noble510520
  • 浏览: 54254 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

Unsupported configuration attributes: [FILE_UPLOAD]

 
阅读更多

Caused by: java.lang.IllegalArgumentException: Unsupported configuration attributes: [FILE_UPLOAD]
情景:
有一个上传URL,设置权限为FILE_UPLOAD

原因:
查资料后发现,spring security 的access权限需要是ROLE_开头
可以在配置文件更改rolePrefix=”ROLE_”

解决方案:
在access权限前面加上ROLE_

<script type="text/javascript"> $(function () { $('pre.prettyprint code').each(function () { var lines = $(this).text().split('\n').length; var $numbering = $('<ul/>').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i <= lines; i++) { $numbering.append($('<li/>').text(i)); }; $numbering.fadeIn(1700); }); }); </script>
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics