mirror of
https://gitee.com/y_project/RuoYi-Cloud.git
synced 2026-01-29 04:51:58 +08:00
修改配置信息
This commit is contained in:
39
ruoyi-modules/ruoyi-gen/src/main/resources/bootstrap-dev.yml
Normal file
39
ruoyi-modules/ruoyi-gen/src/main/resources/bootstrap-dev.yml
Normal file
@@ -0,0 +1,39 @@
|
||||
# Spring
|
||||
spring:
|
||||
datasource:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
url: jdbc:mysql://119.23.109.0:3306/ry-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
||||
username: root
|
||||
password: uAiqwVwjJ8-ilinhy
|
||||
|
||||
# Mybatis配置
|
||||
mybatis:
|
||||
# 搜索指定包别名
|
||||
typeAliasesPackage: com.ruoyi.gen.domain
|
||||
# 配置mapper的扫描,找到所有的mapper.xml映射文件
|
||||
mapperLocations: classpath:mapper/**/*.xml
|
||||
|
||||
# swagger 配置
|
||||
swagger:
|
||||
title: 代码生成接口文档
|
||||
license: Powered By ruoyi
|
||||
licenseUrl: https://ruoyi.vip
|
||||
authorization:
|
||||
name: RuoYi OAuth
|
||||
auth-regex: ^.*$
|
||||
authorization-scope-list:
|
||||
- scope: server
|
||||
description: 客户端授权范围
|
||||
token-url-list:
|
||||
- http://localhost:8080/auth/oauth/token
|
||||
|
||||
# 代码生成
|
||||
gen:
|
||||
# 作者
|
||||
author: ruoyi
|
||||
# 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool
|
||||
packageName: com.ruoyi.system
|
||||
# 自动去除表前缀,默认是false
|
||||
autoRemovePre: false
|
||||
# 表前缀(生成类名不会包含表前缀,多个用逗号分隔)
|
||||
tablePrefix: sys_
|
||||
@@ -22,3 +22,54 @@ spring:
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
shared-dataids: application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
|
||||
#请求处理的超时时间
|
||||
ribbon:
|
||||
ReadTimeout: 10000
|
||||
ConnectTimeout: 10000
|
||||
eureka:
|
||||
enable: true
|
||||
|
||||
# feign 配置
|
||||
feign:
|
||||
sentinel:
|
||||
enabled: true
|
||||
okhttp:
|
||||
enabled: true
|
||||
httpclient:
|
||||
enabled: false
|
||||
client:
|
||||
config:
|
||||
default:
|
||||
connectTimeout: 10000
|
||||
readTimeout: 10000
|
||||
compression:
|
||||
request:
|
||||
enabled: true
|
||||
response:
|
||||
enabled: true
|
||||
|
||||
# 暴露监控端点
|
||||
management:
|
||||
endpoints:
|
||||
web:
|
||||
exposure:
|
||||
include: '*'
|
||||
|
||||
# 认证配置
|
||||
security:
|
||||
oauth2:
|
||||
client:
|
||||
client-id: ruoyi
|
||||
client-secret: 123456
|
||||
scope: server
|
||||
resource:
|
||||
loadBalanced: true
|
||||
token-info-uri: http://ruoyi-auth/oauth/check_token
|
||||
ignore:
|
||||
urls:
|
||||
- /v2/api-docs
|
||||
- /actuator/**
|
||||
- /user/info/*
|
||||
- /operlog
|
||||
- /logininfor
|
||||
Reference in New Issue
Block a user