js报Uncaught SyntaxError: Unexpected token <错误 解决方法

js报Uncaught SyntaxError: Unexpected token <错误 解决方法

error

错因

js被shiro的拦截器拦下,访问不了

#shiro的配置
shiro:
  hash-algorithm-name: md5
  hash-iterations: 2
  anon-urls:
  - /index.html*
  - /sys/toLogin*
  - /login/login*
  - /layuicms2.0/**
  login-url: /index.html
  log-out-url: /login/logout*
  authc-ulrs:
  - /**

解决方法

放行layuicms2.0下的静态资源文件

原文地址:https://www.cnblogs.com/senup/p/12007012.html