| .gitignore | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| xp-robotaxi-itinerary-boot/src/main/resources/application-local.yml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| xp-robotaxi-traffic-control-boot/src/main/resources/application-local.yml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| xp-robotaxi-traffic-control-boot/src/main/resources/bootstrap.yml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
.gitignore
@@ -15,7 +15,7 @@ target *.yaml *.yml #*.yaml #*.yml *.log.DS_Store **/.DS_Store xp-robotaxi-itinerary-boot/src/main/resources/application-local.yml
New file @@ -0,0 +1,108 @@ spring: config: activate: on-profile: local autoconfigure: exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure redis: database: 99 host: r-bp1ip8die60uuo3ovypd.redis.rds.aliyuncs.com password: syAktm2x9uDusoF_ port: 6379 data: mongodb: host: dds-bp1f4a38f3cccad4-pub.mongodb.rds.aliyuncs.com port: 3717 database: xp_robotaxi username: xp_robotaxi password: hDXSBe_hs0d5KxUf shardingsphere: datasource: names: xp0 xp0: type: com.alibaba.druid.pool.DruidDataSource driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://pc-bp1o444934f546768po.rwlb.rds.aliyuncs.com:3306/xp_rt_order?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 username: xp_rt_order password: JLZtAI_BL4Lv5mbE druid: initial-size: 10 min-idle: 10 max-active: 100 max-wait: 60000 time-between-eviction-runs-millis: 60000 min-evictable-idle-time-millis: 300000 validation-query: SELECT 1 test-while-idle: true test-on-borrow: false test-on-return: false pool-prepared-statements: true max-pool-prepared-statement-per-connection-size: 20 filters: stat,wall,log4j connection-properties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000 remove-abandoned: true remove-abandoned-timeout: 1800 log-abandoned: true stat-view-servlet: enabled: true url-pattern: /druid/* login-username: admin login-password: admin reset-enable: false wall: config: multi-statement-allow: false rules: sharding: tables: sys_oper_log: actual-data-nodes: xp0.sys_oper_log_${0..9} table-strategy: standard: sharding-column: userId sharding-algorithm-name: sys-oper-log-inline key-generate-strategy: column: oper_id key-generator-name: snowflake xp_agreement_app_user: actual-data-nodes: xp0.xp_agreement_app_user_${0..9} table-strategy: standard: sharding-column: app_user_id sharding-algorithm-name: xp-agreement-app-user-inline key-generate-strategy: column: id key-generator-name: snowflake xp_point: actual-data-nodes: xp0.xp_point_${0..9} table-strategy: standard: sharding-column: electronic_area_id sharding-algorithm-name: xp-point-inline key-generate-strategy: column: id key-generator-name: snowflake sharding-algorithms: sys-oper-log-inline: type: INLINE props: algorithm-expression: sys_oper_log_${userId % 10} xp-agreement-app-user-inline: type: INLINE props: algorithm-expression: xp_agreement_app_user_${app_user_id % 10} xp-point-inline: type: INLINE props: algorithm-expression: xp_point_${electronic_area_id % 10} key-generators: snowflake: type: SNOWFLAKE single-table: default-data-source-name: xp0 props: sql-show: true sql-simple: true seata: enabled: false xp-robotaxi-traffic-control-boot/src/main/resources/application-local.yml
New file @@ -0,0 +1,114 @@ spring: config: activate: on-profile: local autoconfigure: exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure redis: database: 99 host: r-bp1ip8die60uuo3ovypd.redis.rds.aliyuncs.com password: syAktm2x9uDusoF_ port: 6379 data: mongodb: host: dds-bp1f4a38f3cccad4-pub.mongodb.rds.aliyuncs.com port: 3717 database: xp_robotaxi username: xp_robotaxi password: hDXSBe_hs0d5KxUf shardingsphere: props: sql.show: true show-sql: true datasource: names: xp0 xp0: type: com.alibaba.druid.pool.DruidDataSource driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://pc-bp1o444934f546768po.rwlb.rds.aliyuncs.com:3306/xp_rt_operation?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 username: xp_rt_operation password: g0Tw2f_KoNlmW21M druid: initial-size: 10 min-idle: 10 max-active: 100 max-wait: 60000 time-between-eviction-runs-millis: 60000 min-evictable-idle-time-millis: 300000 validation-query: SELECT 1 test-while-idle: true test-on-borrow: false test-on-return: false pool-prepared-statements: true max-pool-prepared-statement-per-connection-size: 20 filters: stat,wall,log4j connection-properties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000 remove-abandoned: true remove-abandoned-timeout: 1800 log-abandoned: true stat-view-servlet: enabled: true url-pattern: /druid/* login-username: admin login-password: admin reset-enable: false wall: config: multi-statement-allow: false rules: sharding: tables: sys_oper_log: actual-data-nodes: xp0.sys_oper_log_${0..9} table-strategy: standard: sharding-column: userId sharding-algorithm-name: sys-oper-log-inline key-generate-strategy: column: oper_id key-generator-name: snowflake xp_agreement_app_user: actual-data-nodes: xp0.xp_agreement_app_user_${0..9} table-strategy: standard: sharding-column: app_user_id sharding-algorithm-name: xp-agreement-app-user-inline key-generate-strategy: column: id key-generator-name: snowflake xp_point: actual-data-nodes: xp0.xp_point_${0..9} table-strategy: standard: sharding-column: electronic_area_id sharding-algorithm-name: xp-point-inline key-generate-strategy: column: id key-generator-name: snowflake sharding-algorithms: sys-oper-log-inline: type: INLINE props: algorithm-expression: sys_oper_log_${userId % 10} xp-agreement-app-user-inline: type: INLINE props: algorithm-expression: xp_agreement_app_user_${app_user_id % 10} xp-point-inline: type: INLINE props: algorithm-expression: xp_point_${electronic_area_id % 10} key-generators: snowflake: type: SNOWFLAKE # swagger配置 swagger: title: 合规监管接口文档 enabled: true license: Powered By xiaopeng licenseUrl: http://127.0.0.1:5800/doc.html seata: enabled: false xp-robotaxi-traffic-control-boot/src/main/resources/bootstrap.yml
New file @@ -0,0 +1,160 @@ server: port: 6110 tomcat: basedir: /data/tomcat # Spring spring: application: # 应用名称 name: xp-robotaxi-traffic-control-boot main: allow-bean-definition-overriding: true allow-circular-references: true profiles: # 环境配置 active: dev # active: prod --- spring: config: activate: on-profile: dev cloud: nacos: discovery: # 服务注册地址 server-addr: 192.168.110.80:8848 service: ${spring.application.name} group: DEFAULT_GROUP namespace: 5185ac4b-6369-48eb-a21b-a7cbc441c5f1 username: nacos password: nacos config: # 配置中心地址 server-addr: 192.168.110.80:8848 namespace: 5185ac4b-6369-48eb-a21b-a7cbc441c5f1 group: DEFAULT_GROUP name: ${spring.application.name} username: nacos password: nacos # 配置文件格式 file-extension: yml # 共享配置 shared-configs: - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension} --- seata: enabled: true application-id: ${spring.application.name} tx-service-group: seata_tx_group #此处配置自定义的seata事务分组名称 enable-auto-data-source-proxy: false #关闭数据库代理 service: vgroup-mapping: seata_tx_group: default data-source-proxy-mode: AT config: type: nacos nacos: # 开发环境 server-addr: 192.168.110.80:8848 namespace: 5185ac4b-6369-48eb-a21b-a7cbc441c5f1 group: DEFAULT_GROUP data-id: seata-server.properties username: nacos password: nacos # 生产环境 # server-addr: 192.168.0.137:8848,192.168.0.123:8848 # namespace: c6cf40b5-44e8-43f9-be61-8d10fa830e2a # group: DEFAULT_GROUP # data-id: seata-server.properties # username: nacos # password: nacos registry: type: nacos nacos: application: seata-server # 开发环境 server-addr: 192.168.110.80:8848 namespace: 5185ac4b-6369-48eb-a21b-a7cbc441c5f1 group: DEFAULT_GROUP username: nacos password: nacos # 生产环境 # server-addr: 192.168.0.137:8848,192.168.0.123:8848 # namespace: c6cf40b5-44e8-43f9-be61-8d10fa830e2a # group: DEFAULT_GROUP # username: nacos # password: nacos cloud: nacos: discovery: # 开发环境 server-addr: 192.168.110.80:8848 namespace: 5185ac4b-6369-48eb-a21b-a7cbc441c5f1 group: DEFAULT_GROUP application: seata-server #Nacos 中 Seata 名称 username: nacos password: nacos # 生产环境 # server-addr: 192.168.0.137:8848,192.168.0.123:8848 # namespace: c6cf40b5-44e8-43f9-be61-8d10fa830e2a # group: DEFAULT_GROUP # application: seata-server #Nacos 中 Seata 名称 # username: nacos # password: nacos sentinel: transport: dashboard: 192.168.0.137:8080 # Sentinel控制台地址 eager: true --- spring: config: activate: on-profile: prod cloud: nacos: discovery: # 服务注册地址 server-addr: 192.168.0.137:8848,192.168.0.123:8848 service: ${spring.application.name} group: DEFAULT_GROUP namespace: c6cf40b5-44e8-43f9-be61-8d10fa830e2a username: nacos password: nacos config: # 配置中心地址 server-addr: 192.168.0.137:8848,192.168.0.123:8848 namespace: c6cf40b5-44e8-43f9-be61-8d10fa830e2a username: nacos password: nacos group: DEFAULT_GROUP name: ${spring.application.name} # 配置文件格式 file-extension: yml # 共享配置 shared-configs: - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension} --- spring: config: activate: on-profile: test cloud: nacos: discovery: # 服务注册地址 server-addr: 127.0.0.1:8848 service: ${spring.application.name} group: DEFAULT_GROUP namespace: 96712c7a-480b-4f40-b783-39f00f3b33ce config: # 配置中心地址 server-addr: 127.0.0.1:8848 namespace: 96712c7a-480b-4f40-b783-39f00f3b33ce group: DEFAULT_GROUP name: ${spring.application.name} # 配置文件格式 file-extension: yml # 共享配置 shared-configs: - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}