多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
| <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 |