1 Star 0 Fork 1K

now/sg-exam

forked from GuYiTan/sg-exam 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
sg-user-service.yml 4.18 KB
一键复制 编辑 原始数据 按行查看 历史
xl1246 提交于 2024-02-25 21:38 . 动态显示网页title和copyright
server:
port: 80
servlet:
context-path: /sg-user-service
spring.application.name: sg-user-service
mybatis:
type-aliases-package: com.github.tangyi.api.user.model,com.github.tangyi.api.exam.model,com.github.tangyi.api.operation.model
mapper-locations: classpath*:mappers/*.xml,classpath*:mappers/**/*.xml
configuration:
map-underscore-to-camel-case: true
mapper:
mappers: tk.mybatis.mapper.common.Mapper
identity: MYSQL
style: camelhumpAndUppercase
before: true
not-empty: false
safe-delete: true
safe-update: true
check-example-entity-class: true
pagehelper:
reasonable: true
support-methods-arguments: true
params: count=countSql
springdoc:
api-docs:
enabled: true
swagger-ui: /swagger-ui.html
packages-to-scan: com.github.tangyi.user.controller,com.github.tangyi.exam.controller
# 七牛云存储配置
qiniu:
access-key: ${QINIU_ACCEESS_KEY:xxxxx}
secret-key: ${QINIU_SECRET_KEY:xxxxx}
bucket: ${QINIU_BUCKET:sg-exam}
domain-of-bucket: ${QINIU_DOMAIN:www.sg-exam.com}
expire: 3600 # 链接超时时间,单位秒,默认一小时
# minio 存储配置
minio:
enabled: true
endpoint: ${MINIO_ENDPOINT:http://127.0.0.1:9000}
bucket: ${MINIO_BUCKET:yunmianshi}
access-key: ${MINIO_ACCESS_KEY:zWXHMYJl99MGISbaVanX}
secret-key: ${MINIO_SECRET_KEY:kPDoBRlxpIwMEHje1ve5l6e3TGSGUfwE1ONSzRb4}
access-domain: ${MINIO_ACCESS_DOMAIN:}
chunk-size-mb: ${MINIO_CHUNK_SIZE_MB:10}
sms:
appKey: ${SMS_APP_KEY:test}
appSecret: ${SMS_APP_SECRET:test}
signName: ${SMS_SIGN_NAME:test}
templateCode: ${SMS_TEMP_CODE:SMS_171192294}
wx:
appId: ${WX_APP_ID:test}
appSecret: ${WX_APP_SECRET:test}
grantType: ${WX_GRANT_TYPE:authorization_code}
wxh5:
appId: ${WXH5_APP_ID:test}
appSecret: ${WXH5_APP_SECRET:test}
token: 123456
sys:
cacheExpire: 86400 # 缓存失效时间,单位秒,默认一天
gen:
author: tangyi
# 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool
packageName: com.github.tangyi.exam
# 生成文件路径
genDir: /Users/tangyi/generate
# 自动去除表前缀,默认是 false
autoRemovePre: true
# 表前缀(生成类名不会包含表前缀,多个用逗号分隔)
tablePrefix:
---
server:
port: 9183
spring:
profiles: dev
datasource:
url: jdbc:mysql://${SG_DB_USER_HOST:localhost}:${SG_DB_USER_POST:3306}/${SG_DB_USER_NAME:sg-exam-user}?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=CTT&characterEncoding=UTF-8&allowMultiQueries=true&useSSL=false&allowPublicKeyRetrieval=true
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
username: ${SG_DB_USER_USERNAME:sg}
password: ${SG_DB_USER_PASSWORD:123456}
hikari:
minimum-idle: 5
maximum-pool-size: 15
auto-commit: true
idle-timeout: 30000
max-lifetime: 500000
connection-timeout: 30000
connection-test-query: SELECT 1
redis:
host: ${SG_REDIS_USER_HOST:127.0.0.1}
username: ${SG_REDIS_USER_USERNAME:}
password: ${SG_REDIS_USER_PASSWORD:}
port: ${SG_REDIS_USER_POST:6379}
---
server:
port: 80
spring:
profiles: docker
servlet:
multipart:
max-file-size: 10MB
max-request-size: 100MB
datasource:
url: jdbc:mysql://${SG_DB_USER_HOST}:${SG_DB_USER_POST}/sg-exam-user?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=CTT&characterEncoding=UTF-8&allowMultiQueries=true&useSSL=false&allowPublicKeyRetrieval=true
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
username: ${SG_DB_USER_USERNAME:root}
password: ${SG_DB_USER_PASSWORD:123456}
hikari:
minimum-idle: 5
maximum-pool-size: 15
auto-commit: true
idle-timeout: 30000
max-lifetime: 500000
connection-timeout: 30000
connection-test-query: SELECT 1
redis:
host: ${SG_REDIS_USER_HOST:127.0.0.1}
username: ${SG_REDIS_USER_USERNAME:}
password: ${SG_REDIS_USER_PASSWORD:}
port: ${SG_REDIS_USER_POST:6379}
# 生产环境关闭接口文档
springdoc:
api-docs:
enabled: false
# 系统配置
sys:
imageUrl: https://cdn.yunmianshi.com/images/default/%s.jpeg
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/xiaooneboi/sg-exam.git
git@gitee.com:xiaooneboi/sg-exam.git
xiaooneboi
sg-exam
sg-exam
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385