1 Star 26 Fork 7

imlzw / jweb-adai

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
jboot.properties 8.03 KB
一键复制 编辑 原始数据 按行查看 历史
imlzw 提交于 2021-07-27 17:33 . 1.实现模板包创建表sql文件支持
#--------undertow 配置 start--------
# 热部署支持:
# true:支持热部署,目前不完善,会丢失内存对象信息,建议false。
# false:不支持热部署,但还是可以通过debug实现局部代码热加载。
undertow.devMode=false
undertow.port=80
#配置host为通用的地址,默认为localhost, 如未配置,在启用服务发现时,会造成nacos无法主动探测到该服务而导致实例不健康的问题
undertow.host=0.0.0.0
#配置webapp资源目录,默认为 src/main/webapp,webapp,classpath:webapp
#undertow.resourcePath=src/main/webapp
#undertow.hotSwapClassPrefix=org.apache.shiro.,cn.imlzw.,com.ndasec.,cc.jweb.
#-------- jweb-boot 附加undertow参数 start--------
# undertow welcome page , 类似tomcat 的 welcome file list 配置
undertow.welcomePages=index.html,index.htm,index
# undertow error page 配置 , 如:404:/404.html,500:/error/500.html, 默认为空
undertow.errorPages=404:/error/404.html,403:/error/403.html,401:/error/401.html,500:/error/500.html
#-------- jweb-boot 附加undertow参数 end--------
#--------undertow 配置 end--------
#--------jboot 杂项配置区 start--------
#应用模式设置: dev:开发模式,product:生产模式
jboot.app.mode=dev
jboot.app.jfinalConfig = cc.jweb.boot.core.JwebCoreConfig
# json配置
jboot.json.camelCaseJsonStyleEnable=false
jboot.json.skipNullValueField=true
jboot.json.timestampPattern=yyyy-MM-dd HH:mm:ss
#websocket配置,多个 endpoint 用英文逗号(,) 隔开。
jboot.web.webSocketEndpoint=cc.jweb.adai.web.websocket.controller.WebSocketController
#--------jboot 杂项配置区 end--------
#-------jweb 杂项配置区 start--------
# 代码生成器配置
# 代码生成模板存放目录
jweb.adai.generator.template.dir=F:\\generator\\template
# 文件上传配置
jweb.adai.file.uploadPath=F:\\jweb\\upload
# 渲染器配置
# 扩展渲染模板解析引擎共享方法类
jweb.render.template.engine.shareMethodClasses=cc.jweb.adai.web.system.generator.utils.ModelUtils,cc.jweb.adai.web.system.generator.utils.GeneratorUtils
# 支持被渲染引擎渲染的模板文件类型列表
jweb.render.template.engine.supportSuffix=txt,htm,html,ini,json,css,js,java,xml,svg,stl,sql
#-------jweb 杂项配置区 end--------
#--------jboot 数据库配置 start--------
jboot.datasource.type=mysql
jboot.datasource.url=jdbc:mysql://127.0.0.1:3306/jweb-adai?characterEncoding=utf8&useSSL=true
jboot.datasource.user=root
jboot.datasource.password=root
#--------jboot 数据库配置 end--------
#--------jweb 安全模块配置 start--------
# 安全模块总开关,默认false
jweb.security.enable=true
# session超时时长(秒),默认30*60秒,即30分钟
jweb.security.sessionTimeout=1800
# session类型:DEFAULT:http session,JWT:json web token session。{className}:自定义session实现类名
jweb.security.sessionType=JWT
# 可以直接写实现类
# jweb.security.sessionType=cc.jweb.boot.security.session.impl.JwebHttpSession
# jwt token 生成密钥,base64编码的,必填
jweb.security.jwt.secret=MTIz
# jwt token 存储keyName,默认为jwt
jweb.security.jwt.storeKey=jwtt
# jwt token 存储位置,可选:HEADER,COOKIE, 默认为cookie
jweb.security.jwt.storePosition=COOKIE
# jweb 登录模块配置 start--------
# 是否启用,默认false
jweb.security.authc.enable=true
# 配置未认证时,自动跳转登录地址,该地址不会被安全框架拦截。(注:一般也是登录表单提交的地址)。
jweb.security.authc.loginUrl=/console
# 需要认证登录的地址列表,多个地址用,隔开,采用AntPathMatch路径匹配规则
# Apache Ant样式的路径有三种通配符匹配方法。
#
# ‘?’ 匹配任何单字符
# ‘*’ 匹配0或者任意数量的字符
# ‘**’ 匹配0或者更多的目录
# /app/*.x 匹配(Matches)所有在app路径下的.x文件
# /app/p?ttern 匹配(Matches) /app/pattern 和 /app/pXttern,但是不包括/app/pttern
# /**/example 匹配(Matches) /app/example, /app/foo/example, 和 /example
# /app/**/dir/file. 匹配(Matches) /app/dir/file.jsp, /app/foo/dir/file.html, /app/foo/bar/dir/file.pdf
# /**/*.jsp 匹配(Matches)任何的.jsp 文件
jweb.security.authc.filtePaths=/**
# 排除不需要认证的地址列表,多个地址用隔开,采用AntPathMatch路径匹配规则
jweb.security.authc.excludePaths=/assets/**,/error/**,/favicon.ico
# jweb 登录模块配置 end--------
# jweb 权限鉴权模块配置 start--------
# 是否启用,默认false
jweb.security.perms.enable=true
jweb.security.perms.failureUrl=/error/403
# 权限管理器(单例),管理权限校验接口,默认: JwebNonePermsManager,权限判定永远返回false,需要重写
jweb.security.perms.manager=cc.jweb.adai.plugin.security.DBPermsManager
# jweb 登录模块配置 end--------
#--------jweb 安全模块配置 end--------
#--------jboot RPC配置 start--------
#RPC类型:dubbo...?
jboot.rpc.type = dubbo
#dubbo 的通信协议配置
jboot.rpc.dubbo.registry.address = nacos://127.0.0.1:8848
jboot.rpc.dubbo.protocol.name = dubbo
jboot.rpc.dubbo.protocol.port = 0
#--------jboot RPC配置 end--------
#--------jboot nacos 分布式配置中心 start--------
jboot.config.nacos.enable = true
jboot.config.nacos.serverAddr = 127.0.0.1:8848
jboot.config.nacos.dataId = user
jboot.config.nacos.group = dev
#--------jboot nacos 分布式配置中心 end--------
#--------jweb 服务发现配置 start--------
#服务发现开启
jweb.discovery.enable=false
#服务名称,服务关键字,后继调用服务dns名(必填)
jweb.discovery.serviceName=adai
#注册中心地址
jweb.discovery.registerAddress=http://192.168.2.202:8848
#命名空间,默认值:public(可选)
#jweb.discovery.namespace=public
#分组名称,默认值:DEFAULT_GROUP(可选)
#jweb.discovery.groupName=DEFAULT_GROUP
#所属集群名称配置,默认值:DEFAULT(可选)
#jweb.discovery.clusterName=DEFAULT
#是否为临时节点实例,默认:true。 true: 临时节点实现;false:为持久化实例;(可选)
#若为临时节点实例,客户端会主动产生上报心跳,来维护节点健康状况
#若为持久化实例,nacos服务器会主动检测服务健康状况,根据集群配置相应检测类型:TCP,HTTP,NONE。默认为:TCP
jweb.discovery.ephemeral=false
#优先使用的注册的ip段。在一台服务器有多个网卡ip时,优先使用以下ip段(可选)
jweb.discovery.preferredNetworks=192.168,10.0
#忽略指定关键字的网卡。在一台服务器有多个网卡ip时,忽略包含以下关键字的网卡名(可选)
jweb.discovery.ignoredInterfaces=virtual,docker0,veth,hyper-v,vmware,vmnet,tap,docker,flannel,cni
#--------jweb 服务发现配置 end--------
#--------jweb 熔断限流sentinel配置 start--------
# 详情配置,请参考:
# 指定项目名称,String null,非必需,
project.name=jweb-adai
# 指定应用的类型 int 0 (APP_TYPE_COMMON) 否 1.6.0 引入
# csp.sentinel.app.type
# 单个监控日志文件的大小 long 52428800 (50MB) 否
# csp.sentinel.metric.file.single.size
# 监控日志文件的总数上限 int 6 否
# csp.sentinel.metric.file.total.count
# 最大的有效响应时长(ms),超出此值则按照此值记录 int 4900 否 1.4.1 引入
# csp.sentinel.statistic.max.rt
# SPI 加载时使用的 ClassLoader,默认为给定类的 ClassLoader String default 否 若配置 context 则使用 thread context ClassLoader。1.7.0 引入
# csp.sentinel.spi.classloader
csp.sentinel.dashboard.server=localhost:8080
# 心跳包发送周期,单位毫秒 long,默认 null,非必需,若不进行配置,则会从相应的 HeartbeatSender 中提取默认值
# csp.sentinel.heartbeat.interval.ms=
# 本地启动 HTTP API Server 的端口号,int,默认值:8719,非必需,若端口冲突会自动向下探测可用的端口。
csp.sentinel.api.port=8720
# 指定心跳包中本机的 IP,String - 默认值:空, 若不指定则通过 HostNameUtil 解析;该配置项多用于多网卡环境
# csp.sentinel.heartbeat.client.ip=
#--------jweb 熔断限流sentinel配置 end--------
Java
1
https://gitee.com/imlzw/jweb-adai.git
git@gitee.com:imlzw/jweb-adai.git
imlzw
jweb-adai
jweb-adai
master

搜索帮助