解决Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exceptionjava.lang.IllegalArgumentException: Pattern cannot be null or empty
错误原因是因为Spring-Security进行授权管理的时候FilterSecurityInterceptor.doFilter进行invoke方法时调用getobtainSecurityMetadataSource().getAttributes(object);获取地址是出现空值就会报这个错误
解决办法就是给URL赋值或者用“-”代替,千万别出现空值就好了
最后麻烦大家转载的时候请注明出处,谢谢
与之类似的错误就是You must provide a configuration attribute
请参考https://blog.csdn.net/dachengzi159/article/details/99850045