| <p align = center>屬性</p> | <p align = center>默認值</p> | <p align = center>說明值</p> | <p align = center>備注</p> |
| --- | --- | --- | --- |
| ***<p align = center style = font-size:20px>數據庫配置:</p>*** |
| jpower.環境變量值.datasource.driver-class-name | | 數據庫驅動 | |
| jpower.環境變量值.datasource.url | | 數據庫連接 | |
| jpower.環境變量值.datasource.username | | 數據庫用戶名 | |
| jpower.環境變量值.datasource.password | | 數據庫密碼 | |
| ***<p align = center style = font-size:20px>nacos配置:</p>*** |
| jpower.環境變量值.nacos.server-addr | | nacos地址 | |
| jpower.環境變量值.nacos.namespace | | nacos命名空間 | |
| ***<p align = center style = font-size:20px>sentinel配置:</p>*** |
| jpower.環境變量值.sentinel.dashboard | | sentinel地址 | |
| ***<p align = center style = font-size:20px>seata配置:</p>*** |
| jpower.環境變量值.seata.grouplist | | seata地址 | |
| jpower.環境變量值.seata.enabled | false | 是否開啟seata | |
| ***<p align = center style = font-size:20px>文件上傳配置:</p>*** |
| jpower.fileParentPath | | 文件上傳保存路徑 | 文件上傳使用服務器存儲時使用 |
| ***<p align = center style = font-size:20px>gateway網關配置:</p>*** |
| jpower.gateway.log | false | 是否打印gateway請求日志 | |
| ***<p align = center style = font-size:20px>數據權限配置:</p>*** |
| jpower.datascope.enable | true | 是否開啟數據權限 | |
| ***<p align = center style = font-size:20px>字典配置:</p>*** |
| jpower.dictbind.enable | true | 是否開啟字典自動綁定 | @Dict注解 |
| ***<p align = center style = font-size:20px>租戶配置:</p>*** |
| jpower.tenant.enable | true | 是否開啟多租戶模式 | |
| jpower.tenant.column | tenant_code | 租戶字段名稱 | |
| jpower.tenant.excludeTables | | 不讓系統管理租戶查詢的表 | |
| ***<p align = center style = font-size:20px>XSS配置:</p>*** |
| jpower.xss.isIncludeRichText | true | 是否開啟富文本過濾 | |
| jpower.xss.excludes | true | 不過濾得接口 | |
| ***<p align = center style = font-size:20px>feign請求配置:</p>*** |
| jpower.feign.http.logLevel | FULL<br>PROD環境默認是BASIC | feign請求日志級別 | |
| jpower.feign.http.maxConnections | 200 | 線程池最大連接數 | |
| jpower.feign.http.timeToLive | 900 | 線程存活時間(默認單位秒) | |
| jpower.feign.http.timeToLiveUnit | TimeUnit.SECONDS | 線程存活時間單位 | |
| jpower.feign.http.followRedirects | true | 是否啟用重定向 | |
| jpower.feign.http.timeToLiveUnit | TimeUnit | 線程存活時間單位 | |
| jpower.feign.http.connectionTimeout | 2000 | 連接超時時間(單位毫秒) | |
| jpower.feign.http.disableSslValidation | false | 是否啟用SSL驗證 | |
| jpower.feign.http.retryOnConnectionFailure | true | 是否開啟重試 | |
| jpower.feign.http.readTimeout | 30000 | 讀取超時(單位毫秒) | |
| jpower.feign.http.writeTimeout | 30000 | 寫入超時(單位毫秒) | |
| jpower.feign.http.callTimeout | 讀取時間+10000 | 整個流程耗費的超時時間(單位毫秒) | |
| ***<p align = center style = font-size:20px>swagger配置:</p>*** |
| jpower.swagger.groupName | 項目名稱 | 分組名稱 | |
| jpower.swagger.basePackage[] | com.wlcb | 掃描的包路徑 | |
| jpower.swagger.basePath[] | /** | swagger解析的接口url規則 | |
| jpower.swagger.excludePath[] | /error<br>/actuator/** | 在basePath基礎上需要排除的接口url規則 | |
| jpower.swagger.host | | host信息 | |
| jpower.swagger.title | Jpower 接口文檔系統 | 接口文檔名稱 | |
| jpower.swagger.description | Jpower 接口文檔系統 | 接口文檔描述 | |
| jpower.swagger.license | Powered By Jpower | 文檔下方的license顯示信息 | |
| jpower.swagger.licenseUrl | http://localhost | license點擊跳轉鏈接 | |
| jpower.swagger.termsOfServiceUrl | http://localhost | 服務地址 | |
| jpower.swagger.version | JPOWER當前版本號 | 服務版本 | |
| jpower.swagger.contact.name | mr.g | 姓名 | |
| jpower.swagger.contact.url | localhost | 地址 | |
| jpower.swagger.contact.email | | 郵箱 | |
| jpower.swagger.authorization[].name | Authorization<br>jpower-auth | 鑒權參數屬性名 | |
| jpower.swagger.authorization[].type | header<br>header | 鑒權參數屬性類型,例如header | |
| jpower.swagger.authorization[].authorizationScopes[].scope | global | 服務地址 | |
| jpower.swagger.authorization[].authorizationScopes[].description | accessEverything | 服務地址 | |
| ***<p align = center style = font-size:20px>演示環境配置:</p>*** |
| jpower.demo.enable | false | 是否開啟演示環境 | |
| jpower.demo.skipUrl[] | | 不攔截的接口 | |
| ***<p align = center style = font-size:20px>MyBatis配置:</p>*** |
| jpower.mybatis.dynamicTableName | false | 是否開啟動態表名 | 該功能未發布 |
| jpower.mybatis.optimisticLocker | true | 是否開啟樂觀鎖 | |
| jpower.mybatis.illegalSQL | false | 是否開啟垃圾SQL攔截 | |
| jpower.mybatis.blockAttack | true | 是否開啟全表更新刪除攔截 | |
| jpower.mybatis.page.overflow | false | 溢出總頁數后是否進行處理 | |
| jpower.mybatis.page.maxLimit | 5000 | 單頁分頁條數最高限制 | |
| jpower.mybatis.page.optimizeJoin | true | 生成 countSql 是否優化掉 join | 現在只支持 left join |
| jpower.mybatis.sql.print | true | 是否開啟打印 | |
| jpower.mybatis.sql.printTimeout | 0 | 超時打印時長(單位毫秒) | |
| ***<p align = center style = font-size:20px>Redis配置:</p>*** |
| jpower.redis.log | true | 是否打印redis請求日志 | |
| jpower.redis.cacheable.timeToLive | Duration.ofDays(1) | 過期時間 | 針對@Cacheable注解 |
| jpower.redis.cacheable.cacheNullValues | true | 是否允許緩存null值 | 針對@Cacheable注解 |
| jpower.redis.cacheable.keyPrefix | | key 的前綴 | 針對@Cacheable注解 |
| jpower.redis.cacheable.useKeyPrefix | true | 寫入redis時,是否使用key前綴 | 針對@Cacheable注解 |
| jpower.redis.cacheable-key.KEY名稱.timeToLive | Duration.ofDays(1) | 過期時間 | 針@Cacheable注解的對單個KEY |
| jpower.redis.cacheable-key.KEY名稱.cacheNullValues | true | 是否允許緩存null值 | 針對@Cacheable注解的單個KEY |
| jpower.redis.cacheable-key.KEY名稱.keyPrefix | | key 的前綴 | 針對@Cacheable注解的單個KEY |
| jpower.redis.cacheable-key.KEY名稱.useKeyPrefix | true | 寫入redis時,是否使用key前綴 | 針對@Cacheable注解的單個KEY |
| ***<p align = center style = font-size:20px>鑒權配置:</p>*** |
| jpower.auth.skipUrl[] | | 不鑒權的接口 | |
| jpower.auth.whileIp[] | | 白名單(不鑒權的IP) | |
| jpower.auth.client[].code | | 客戶端編碼 | 多終端令牌認證配置 |
| jpower.auth.client[].path[] | | 接口地址規則 | 多終端令牌認證配置 |
| ***<p align = center style = font-size:20px>日志配置:</p>*** |
| jpower.log.mode | file,skywalking | 日志輸出方式 | 支持的值還有elk |
| jpower.log.elk.destination | | elk logstash地址 eg:127.0.0.1:9001 | |
| jpower.log.file.base | ./logs | 文件存儲路徑 | |
| jpower.log.file.historyDay | 30 | 文件日志保留天數 | |
| jpower.log.file.pattern | %d{yyyy-MM-dd HH:mm:ss.SSS} %-5level [%tid] [%thread] [%logger] - %msg%n | 文件日志輸出格式 | |
| jpower.log.skywalking.pattern | %d{yyyy-MM-dd HH:mm:ss.SSS} %-5level [%tid] [%thread] [%logger] - %msg%n | skywalking日志輸出格式 | |
| ***<p align = center style = font-size:20px>接口監控配置:</p>*** |
| jpower.monitor-restful.enable | false | 是否啟用接口監控 | |
| jpower.monitor-restful.cron | 0 0 1 * * ? | 監控時間,cron表達式 | |
| jpower.monitor-restful.routes[].name | | 監控項目名稱 | |
| jpower.monitor-restful.routes[].url | /v2/api-docs | 監控項目接口信息地址 | |
| jpower.monitor-restful.routes[].location | | 監控項目地址 | |
| jpower.monitor-restful.routes[].auth | | 服務的鑒權信息 | 具體配置見com.wlcb.jpower.properties.AuthInfoConfiguration |
| jpower.monitor-restful.auth | | 所有服務的鑒權信息 | 具體配置見com.wlcb.jpower.properties.AuthInfoConfiguration |
- 序言
- 開發環境準備
- 環境要求
- 環境安裝
- 基礎環境安裝
- Nacos安裝
- Sentinel安裝
- 插件安裝
- 導入工程
- 運行工程
- 工程測試
- JPower特性
- 系統啟動器
- 多終端令牌認證
- 系統鑒權
- 鑒權API
- 鑒權配置
- API權限配置
- 接口放行配置
- 數據權限
- redis緩存
- 動態網關
- 聚合文檔
- SaaS多租戶
- 概念
- 使用
- Xss防注入
- 日志記錄
- 操作日志&錯誤日志
- SQL打印
- feign請求日志&配置
- gateway日志
- 服務日志打印
- 導入導出
- 字典查詢
- 系統文件上傳下載
- 接口監控
- 代碼生成器
- 配置文件共享
- Mybatis過濾器
- 配置說明
- 高級實戰
- nacos動態配置
- Seata分布式事務
- 簡介
- docker啟動
- 微服務配置
- 微服務遠程調用
- 聲明式服務調用 Feign
- 熔斷機制 Sentinel
- sentinel流控
- 簡介
- 微服務配置
- 配置nacos對接
- APM監控&鏈路追蹤
- 簡介
- 安裝
- 微服務接入
- SpringBootAdmin監控
- ELK分布式日志追蹤系統
- ELK簡介
- ELK一鍵部署
- 微服務日志對接ELK
- JPower-Chat
- 配置說明
- 生產部署
- docker部署
- docker安裝
- docker-compose安裝
- harbor安裝
- 部署步驟
- 版本升級
- 1.0.1升級到2.0.0
- 2.0.0升級到2.0.2
- 2.0.2升級2.1.0
- 2.1.0升級到2.1.1
- 2.1.1升級到2.1.2
- 2.1.2升級到2.1.4