13693261870
7 天以前 b77444d17b5fcc41ebcdc08588b8b035b428b16b
修改mybatis.xml
已添加1个文件
已修改6个文件
已删除2个文件
425 ■■■■ 文件已修改
se-collect/src/main/resources/application-prod.yml 81 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-collect/src/main/resources/mybatis.xml 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-discover/src/main/resources/mybatis.xml 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-publish/src/main/resources/mybatis.xml 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/resources/application-dev.yml 137 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/resources/application-prod.yml 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/resources/application-test.yml 158 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/resources/mybatis.xml 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
sm.txt 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-collect/src/main/resources/application-prod.yml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,81 @@
server:
  tomcat:
    uri-encoding: UTF-8
    max-connections: 5000
    max-http-form-post-size: 100MB
    threads:
      max: 2000
  servlet:
    context-path: /
spring:
  # redis
  redis:
    database: 0
    host: 192.168.11.203
    port: 6379
    password: rediS_5L#F4_Server
    timeout: 10000
    lettuce:
      pool:
        max-active: 1000
        max-wait: -1
        max-idle: 10
        min-idle: 5
  # session
  session:
    timeout: PT20M
  # servlet
  servlet:
    multipart:
      enabled: true
      max-file-size: 204800MB
      max-request-size: 1048576MB
  # jackson
  jackson:
    time-zone: GMT+8
    date-format: yyyy-MM-dd HH:mm:ss
    locale: zh_CN
  # datasource
  datasource:
    type: com.alibaba.druid.pool.DruidDataSource
    url: jdbc:postgresql://192.168.11.203:5432/jhs?useAffectedRows=true
    username: postgres
    password: Postgres!_17_jHs
    driver-class-name: org.postgresql.Driver
    platform: POSTGRESQL
    filters: stat,wall,log4j
    connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
    logAbandoned: true
    # druid
    druid:
      initial-size: 5
      min-idle: 5
      max-active: 100
      max-wait: 60000
      time-between-eviction-runs-millis: 60000
      min-evictable-idle-time-millis: 300000
      max-pool-prepared-statement-per-connection-size: 50
      pool-prepared-statements: true
      validation-query: SELECT 1
      test-while-idle: true
      test-on-borrow: false
      test-on-return: false
      filters: stat,wall
      stat-view-servlet:
        enabled: false
mybatis-plus:
  config-location: classpath:mybatis.xml
logging:
  config: classpath:logback.xml
remote:
  maxTotalConnect: 0
  maxConnectPerRoute: 1000
  connectTimeout: 30000
  readTimeout: -1
sys:
  swaggerEnable: true
se-collect/src/main/resources/mybatis.xml
@@ -32,6 +32,11 @@
        <setting name="logImpl" value="NO_LOGGING" />
    </settings>
    <typeAliases>
        <!--‌类型别名配置-->
        <package name="com.terra.collect.entity"/>
    </typeAliases>
    <mappers>
        <!--Mapper文件位置配置-->
        <mapper resource="mapper/**/*.xml" />
    </mappers>
</configuration>
se-discover/src/main/resources/mybatis.xml
@@ -32,6 +32,11 @@
        <setting name="logImpl" value="NO_LOGGING" />
    </settings>
    <typeAliases>
        <package name="com.terra.discover.entity"/>
        <!--‌类型别名配置-->
        <package name="com.terra.collect.entity"/>
    </typeAliases>
    <mappers>
        <!--Mapper文件位置配置-->
        <mapper resource="mapper/**/*.xml" />
    </mappers>
</configuration>
se-publish/src/main/resources/mybatis.xml
@@ -32,6 +32,11 @@
        <setting name="logImpl" value="NO_LOGGING" />
    </settings>
    <typeAliases>
        <package name="com.terra.publish.entity"/>
        <!--‌类型别名配置-->
        <package name="com.terra.collect.entity"/>
    </typeAliases>
    <mappers>
        <!--Mapper文件位置配置-->
        <mapper resource="mapper/**/*.xml" />
    </mappers>
</configuration>
se-system/src/main/resources/application-dev.yml
ÎļþÒÑɾ³ý
se-system/src/main/resources/application-prod.yml
@@ -9,15 +9,13 @@
    context-path: /
spring:
  application:
    name: se-system
  mvc:
    static-path-pattern: /static/**
  # redis
  redis:
    database: 0
    host: 192.168.11.203
    port: 6379
    host: 127.0.0.1
    port: 6369
    password: rediS_5L#F4_Server
    # è¿žæŽ¥è¶…时时长(毫秒)
    timeout: 10000
@@ -51,9 +49,11 @@
  # datasource
  datasource:
    type: com.alibaba.druid.pool.DruidDataSource
    url: jdbc:postgresql://192.168.11.203:5432/jhs?useAffectedRows=true
    #url: jdbc:postgresql://192.168.11.205:5433/jhs?useAffectedRows=true
    url: jdbc:postgresql://127.0.0.1:5433/jhs?useAffectedRows=true
    username: postgres
    password: Postgres!_17_jHs
    #password: Postgres!_14_Lf
    password: postgres
    driver-class-name: org.postgresql.Driver
    platform: POSTGRESQL
    filters: stat,wall,log4j
@@ -85,8 +85,6 @@
mybatis-plus:
  type-aliases-package: com.terra.system.entity
  config-location: classpath:mybatis.xml
  mapper-locations: classpath:mapper/**/*.xml
# logging
logging:
se-system/src/main/resources/application-test.yml
ÎļþÒÑɾ³ý
se-system/src/main/resources/mybatis.xml
@@ -32,6 +32,11 @@
        <setting name="logImpl" value="NO_LOGGING" />
    </settings>
    <typeAliases>
        <package name="com.terra.system.entity"/>
        <!--‌类型别名配置-->
        <package name="com.terra.collect.entity"/>
    </typeAliases>
    <mappers>
        <!--Mapper文件位置配置-->
        <mapper resource="mapper/**/*.xml" />
    </mappers>
</configuration>
sm.txt
@@ -1,6 +1,13 @@
-------------------------------------------------------------------
------------------------------------------------------------------- åŠŸèƒ½æ¨¡å—ï¼Œæ”¯æŒç‹¬ç«‹éƒ¨ç½²
  se-common:      é€šç”¨æ¨¡å—
 se-gateway:8001,系统网关
@@ -9,7 +16,7 @@
se-discover:8004,知识发现
 se-publish:8005,数据发布
------------------------------------------------------------------- URL
admin:Admin@1234_lf
admin:Admin@1234_lf
nacos:nAcos_!9#_admIn
http://localhost:8848/nacos