Просмотр исходного кода

update search-service application.yml

reghao 4 месяцев назад
Родитель
Сommit
56a6d584f4

+ 54 - 11
search/search-service/src/main/resources/application-dev.yml

@@ -1,15 +1,58 @@
 dubbo:
+  application:
+    name: search-service
+    qos-enable: true
+    qos-port: 16107
+    qos-accept-foreign-ip: false
+  scan:
+    base-packages: cn.reghao.tnb.search.app.rpc
+  protocol:
+    name: dubbo
+    host: 127.0.0.1
+    port: 6107
   registry:
     group: dubbo
     address: zookeeper://127.0.0.1:2181
+server:
+  port: 6007
 spring:
+  mvc:
+    pathmatch:
+      matching-strategy: ant_path_matcher
+  datasource:
+    driver-class-name: com.mysql.cj.jdbc.Driver
+    type: com.zaxxer.hikari.HikariDataSource
+    hikari:
+      minimum-idle: 5
+      maximum-pool-size: 10
+      auto-commit: true
+      idle-timeout: 30000
+      pool-name: EvaluationHikariCP
+      max-lifetime: 1800000
+      connection-timeout: 30000
+      connection-test-query: SELECT 1
+    url: jdbc:mysql://127.0.0.1/tnb_content_rdb?useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2b8
+    username: dev
+    password: Dev@123456
+  jpa:
+    show-sql: false
+    open-in-view: true
+    hibernate:
+      ddl-auto: update
+    properties:
+      hibernate.format_sql: true
+      hibernate.naming.physical-strategy: org.hibernate.scripts.model.naming.PhysicalNamingStrategyStandardImpl
+      hibernate.cache.use_second_level_cache: false
+      hibernate.search.backend.directory.type: local-filesystem
+      hibernate.search.backend.directory.root: /opt/data/search_data/hibernate_lucene
+      hibernate.search.backend.analysis.configurer: class:cn.reghao.tnb.search.app.config.MyLuceneAnalysisConfigurer
   cloud:
     discovery:
       enabled: true
   data:
     mongodb:
       host: 127.0.0.1
-      database: "tnb_content_rdb"
+      database: "tnb_content_tdb"
       authentication-database: admin
       username: dev
       password: Dev@123456
@@ -18,24 +61,24 @@ spring:
       host: 127.0.0.1
       port: 6379
       password: Dev@123456
-  datasource:
-    url: jdbc:mysql://127.0.0.1/reghao_bnt_rdb?useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2b8
-    username: dev
-    password: Dev@123456
   rabbitmq:
     host: 127.0.0.1
     port: 5672
     virtual-host: /
     username: dev
     password: Dev@123456
+eureka:
+  instance:
+    prefer-ip-address: true
+  client:
+    register-with-eureka: true
+    fetch-registry: true
+    service-url:
+      defaultZone: http://127.0.0.1:6060/eureka/
 es:
-  host: 192.168.0.10
+  host: 127.0.0.1
   port: 9200
   username: elastic
   password: VLTtN03SSJ4lsyyg56kf
   native-lucene-dir: /opt/data/search_data/native_lucene
-  hibernate-lucene-dir: /opt/data/search_data/hibernate_lucene
-eureka:
-  client:
-    service-url:
-      defaultZone: http://127.0.0.1:6060/eureka/
+  hibernate-lucene-dir: /opt/data/search_data/hibernate_lucene

+ 55 - 8
search/search-service/src/main/resources/application-test.yml

@@ -1,8 +1,53 @@
 dubbo:
+  application:
+    name: search-service
+    qos-enable: true
+    qos-port: 16107
+    qos-accept-foreign-ip: false
+  scan:
+    base-packages: cn.reghao.tnb.search.app.rpc
+  protocol:
+    name: dubbo
+    host: 192.168.0.181
+    port: 6107
   registry:
     group: dubbo
     address: zookeeper://192.168.0.209:2181
+server:
+  port: 6007
+  tomcat:
+    max-http-form-post-size: 4MB
 spring:
+  mvc:
+    pathmatch:
+      matching-strategy: ant_path_matcher
+  datasource:
+    driver-class-name: com.mysql.cj.jdbc.Driver
+    type: com.zaxxer.hikari.HikariDataSource
+    hikari:
+      minimum-idle: 5
+      maximum-pool-size: 10
+      auto-commit: true
+      idle-timeout: 30000
+      pool-name: EvaluationHikariCP
+      max-lifetime: 1800000
+      connection-timeout: 30000
+      connection-test-query: SELECT 1
+    url: jdbc:mysql://192.168.0.10/tnb_content_rdb?useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2b8
+    username: test
+    password: Test@123456
+  jpa:
+    show-sql: false
+    open-in-view: true
+    hibernate:
+      ddl-auto: update
+    properties:
+      hibernate.format_sql: true
+      hibernate.naming.physical-strategy: org.hibernate.scripts.model.naming.PhysicalNamingStrategyStandardImpl
+      hibernate.cache.use_second_level_cache: false
+      hibernate.search.backend.directory.type: local-filesystem
+      hibernate.search.backend.directory.root: /opt/data/search_data/hibernate_lucene
+      hibernate.search.backend.analysis.configurer: class:cn.reghao.tnb.search.app.config.MyLuceneAnalysisConfigurer
   cloud:
     discovery:
       enabled: true
@@ -18,22 +63,24 @@ spring:
       host: 192.168.0.209
       port: 6379
       password: Test@123456
-  datasource:
-    url: jdbc:mysql://192.168.0.209/tnb_content_tdb?useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2b8
-    username: test
-    password: Test@123456
   rabbitmq:
     host: 192.168.0.209
     port: 5672
     virtual-host: /
     username: test
     password: Test@123456
+eureka:
+  instance:
+    prefer-ip-address: true
+  client:
+    register-with-eureka: true
+    fetch-registry: true
+    service-url:
+      defaultZone: http://192.168.0.210:6060/eureka/
 es:
   host: 192.168.0.10
   port: 9200
   username: elastic
   password: VLTtN03SSJ4lsyyg56kf
-eureka:
-  client:
-    service-url:
-      defaultZone: http://192.168.0.210:6060/eureka/
+  native-lucene-dir: /opt/data/search_data/native_lucene
+  hibernate-lucene-dir: /opt/data/search_data/hibernate_lucene

+ 0 - 84
search/search-service/src/main/resources/application1.yml

@@ -1,84 +0,0 @@
-dubbo:
-  application:
-    name: search-service
-    qos-enable: true
-    qos-port: 16107
-    qos-accept-foreign-ip: false
-  scan:
-    base-packages: cn.reghao.tnb.search.app.rpc
-  protocol:
-    name: dubbo
-    host: 127.0.0.1
-    port: 6107
-  registry:
-    group: dubbo
-    address: zookeeper://127.0.0.1:2181
-server:
-  port: 6007
-spring:
-  mvc:
-    pathmatch:
-      matching-strategy: ant_path_matcher
-  datasource:
-    driver-class-name: com.mysql.cj.jdbc.Driver
-    type: com.zaxxer.hikari.HikariDataSource
-    hikari:
-      minimum-idle: 5
-      maximum-pool-size: 10
-      auto-commit: true
-      idle-timeout: 30000
-      pool-name: EvaluationHikariCP
-      max-lifetime: 1800000
-      connection-timeout: 30000
-      connection-test-query: SELECT 1
-    url: jdbc:mysql://127.0.0.1/tnb_content_rdb?useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2b8
-    username: dev
-    password: Dev@123456
-  jpa:
-    show-sql: false
-    open-in-view: true
-    hibernate:
-      ddl-auto: update
-    properties:
-      hibernate.format_sql: true
-      hibernate.naming.physical-strategy: org.hibernate.scripts.model.naming.PhysicalNamingStrategyStandardImpl
-      hibernate.cache.use_second_level_cache: false
-      hibernate.search.backend.directory.type: local-filesystem
-      hibernate.search.backend.directory.root: /opt/data/search_data/hibernate_lucene
-      hibernate.search.backend.analysis.configurer: class:cn.reghao.tnb.search.app.config.MyLuceneAnalysisConfigurer
-  cloud:
-    discovery:
-      enabled: true
-  data:
-    mongodb:
-      host: 127.0.0.1
-      database: "tnb_content_tdb"
-      authentication-database: admin
-      username: dev
-      password: Dev@123456
-    redis:
-      database: 0
-      host: 127.0.0.1
-      port: 6379
-      password: Dev@123456
-  rabbitmq:
-    host: 127.0.0.1
-    port: 5672
-    virtual-host: /
-    username: dev
-    password: Dev@123456
-eureka:
-  instance:
-    prefer-ip-address: true
-  client:
-    register-with-eureka: true
-    fetch-registry: true
-    service-url:
-      defaultZone: http://127.0.0.1:6060/eureka/
-es:
-  host: 127.0.0.1
-  port: 9200
-  username: elastic
-  password: VLTtN03SSJ4lsyyg56kf
-  native-lucene-dir: /opt/data/search_data/native_lucene
-  hibernate-lucene-dir: /opt/data/search_data/hibernate_lucene