spring-configuration-metadata.json 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. {
  2. "groups": [
  3. {
  4. "name": "jt.security",
  5. "type": "com.jt.cloud.framework.security.config.SecurityProperties",
  6. "sourceType": "com.jt.cloud.framework.security.config.SecurityProperties"
  7. }
  8. ],
  9. "properties": [
  10. {
  11. "name": "jt.security.mock-enable",
  12. "type": "java.lang.Boolean",
  13. "description": "mock 模式的开关",
  14. "sourceType": "com.jt.cloud.framework.security.config.SecurityProperties",
  15. "defaultValue": false
  16. },
  17. {
  18. "name": "jt.security.mock-secret",
  19. "type": "java.lang.String",
  20. "description": "mock 模式的密钥 一定要配置密钥,保证安全性",
  21. "sourceType": "com.jt.cloud.framework.security.config.SecurityProperties",
  22. "defaultValue": "test"
  23. },
  24. {
  25. "name": "jt.security.password-encoder-length",
  26. "type": "java.lang.Integer",
  27. "description": "PasswordEncoder 加密复杂度,越高开销越大",
  28. "sourceType": "com.jt.cloud.framework.security.config.SecurityProperties",
  29. "defaultValue": 4
  30. },
  31. {
  32. "name": "jt.security.permit-all-urls",
  33. "type": "java.util.List<java.lang.String>",
  34. "description": "免登录的 URL 列表",
  35. "sourceType": "com.jt.cloud.framework.security.config.SecurityProperties"
  36. },
  37. {
  38. "name": "jt.security.token-header",
  39. "type": "java.lang.String",
  40. "description": "HTTP 请求时,访问令牌的请求 Header",
  41. "sourceType": "com.jt.cloud.framework.security.config.SecurityProperties",
  42. "defaultValue": "Authorization"
  43. },
  44. {
  45. "name": "jt.security.token-parameter",
  46. "type": "java.lang.String",
  47. "description": "HTTP 请求时,访问令牌的请求参数 初始目的:解决 WebSocket 无法通过 header 传参,只能通过 token 参数拼接",
  48. "sourceType": "com.jt.cloud.framework.security.config.SecurityProperties",
  49. "defaultValue": "token"
  50. }
  51. ],
  52. "hints": []
  53. }