Spring Security安全配置-遇到的有关问题及解决办法

Spring Security安全配置--遇到的问题及解决方法

A granted authority textual representation is required

一个授权的文本表示是必需的

 

Configuration problem:

Filter beans '<loginFilter>' and '<org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter#0>' have the same 'order' value. When using custom filters, please make sure the positions do not conflict with default filters. Alternatively you can disable the default filters by removing the corresponding child elements from <http> and avoiding the use of <http auto-config='true'>.

当使用自定义过滤器,请确保该位置不冲突的默认的过滤器或者你可以通过删除相应的子元素从HTTP避免使用禁用默认的过滤器