page 问题 sharding配置
This commit is contained in:
@@ -19,25 +19,33 @@ management:
|
||||
db:
|
||||
enabled: false #关闭数据库健康检查isV
|
||||
#mybatis
|
||||
mybatis-plus:
|
||||
mapper-locations: classpath*:/mapper/**/*.xml
|
||||
#实体扫描,多个package用逗号或者分号分隔
|
||||
typeAliasesPackage: com.sqx.modules.*.entity
|
||||
global-config:
|
||||
#数据库相关配置
|
||||
db-config:
|
||||
#主键类型 AUTO:"数据库ID自增", INPUT:"用户输入ID", ID_WORKER:"全局唯一ID (数字类型唯一ID)", UUID:"全局唯一ID UUID";
|
||||
id-type: AUTO
|
||||
logic-delete-value: -1
|
||||
logic-not-delete-value: 0
|
||||
banner: false
|
||||
#原生配置
|
||||
configuration:
|
||||
map-underscore-to-camel-case: true
|
||||
cache-enabled: false
|
||||
call-setters-on-nulls: true
|
||||
jdbc-type-for-null: 'null'
|
||||
# log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||
pagehelper:
|
||||
offsetAsPageNum: true
|
||||
rowBoundsWithCount: true
|
||||
helperDialect: mysql
|
||||
reasonable: true
|
||||
supportMethodsArguments: true
|
||||
params:
|
||||
count: countSql
|
||||
#mybatis-plus:
|
||||
# mapper-locations: classpath*:/mapper/**/*.xml
|
||||
# #实体扫描,多个package用逗号或者分号分隔
|
||||
# typeAliasesPackage: com.sqx.modules.*.entity
|
||||
# global-config:
|
||||
# #数据库相关配置
|
||||
# db-config:
|
||||
# #主键类型 AUTO:"数据库ID自增", INPUT:"用户输入ID", ID_WORKER:"全局唯一ID (数字类型唯一ID)", UUID:"全局唯一ID UUID";
|
||||
# id-type: AUTO
|
||||
# logic-delete-value: -1
|
||||
# logic-not-delete-value: 0
|
||||
# banner: false
|
||||
# #原生配置
|
||||
# configuration:
|
||||
# map-underscore-to-camel-case: true
|
||||
# cache-enabled: false
|
||||
# call-setters-on-nulls: true
|
||||
# jdbc-type-for-null: 'null'
|
||||
## log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||
|
||||
sqx:
|
||||
redis:
|
||||
@@ -70,7 +78,7 @@ spring:
|
||||
allow-bean-definition-overriding: true
|
||||
# 环境 dev|test|prod
|
||||
profiles:
|
||||
active: prod
|
||||
active: dev
|
||||
# jackson时间格式化
|
||||
jackson:
|
||||
time-zone: GMT+8
|
||||
@@ -98,6 +106,9 @@ spring:
|
||||
# pathmatch:
|
||||
# matching-strategy: ant_path_matcher
|
||||
shardingsphere:
|
||||
#广播表
|
||||
broadcast-tables:
|
||||
- course
|
||||
# 短剧集表 通过course_id 分
|
||||
course-details:
|
||||
- course_details
|
||||
@@ -116,15 +127,17 @@ spring:
|
||||
- user_sign_record
|
||||
- invite_achievement
|
||||
- invite_money
|
||||
- user_info
|
||||
- sys_user
|
||||
#中心表
|
||||
center-tables:
|
||||
- message_info
|
||||
- announcement
|
||||
- schedule_job_log
|
||||
- invite
|
||||
- msg
|
||||
- sys_role_menu
|
||||
- sdk_info
|
||||
- course
|
||||
- user_integral_details
|
||||
- common_info
|
||||
- sys_log
|
||||
@@ -133,7 +146,6 @@ spring:
|
||||
- sys_user_role
|
||||
- sys_menu
|
||||
- comment_good
|
||||
- sys_user
|
||||
- course_comment
|
||||
- banner
|
||||
- disc_spinning
|
||||
|
||||
Reference in New Issue
Block a user