Browse Source

perf(servo): 优化静态资源访问配置并更新开发配置文件路径

- 在 application.yml 中添加 '/ok' 路径到静态资源白名单,提高资源访问效率
- 修改 application-dev.yml 中的文件监控路径,确保开发时能正确加载配置
master
lizw-2015 6 months ago
parent
commit
dacaf42164
  1. 2
      servo/src/main/resources/application-dev.yml
  2. 1
      servo/src/main/resources/application.yml

2
servo/src/main/resources/application-dev.yml

@ -7,7 +7,7 @@ mybatis:
interval: 1s interval: 1s
locations: locations:
- fileType: filesystem - fileType: filesystem
location: './servo/src/main/java' location: './yvan-lcc-bench/servo/src/main/java'
filter: '**/*.xml' filter: '**/*.xml'
#- fileType: jar #- fileType: jar
# location: 'classpath*:com/yvan/workbench/**/*.xml' # location: 'classpath*:com/yvan/workbench/**/*.xml'

1
servo/src/main/resources/application.yml

@ -159,6 +159,7 @@ web:
- '/**/*.woff' - '/**/*.woff'
- '/**/*.woff2' - '/**/*.woff2'
- '/**/.git' - '/**/.git'
- '/ok'
ignore-auth-paths: [ ] ignore-auth-paths: [ ]
ignore-auth-failed-paths: [ ] ignore-auth-failed-paths: [ ]
current-user-path: '/api/current_user' current-user-path: '/api/current_user'

Loading…
Cancel
Save