Browse Source

修改 spring boot security 验证的路径

Sun2Young 8 years ago
parent
commit
57ed80a844
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/main/resources/bootstrap.yml

+ 4 - 2
src/main/resources/bootstrap.yml

@@ -18,12 +18,14 @@ spring:
      
 
 security:
+ basic:
+  enabled: true
+  path: /index/**, /schedule/**, /console, /fileUpload, /druid/*
  user:
   name: admin
   password: select111***
   role: ADMIN
- ignored:
-  - /static/**
+ ignored: false
   
 schedule:
  auto-start: true