首页 > 编程语言 >java相关配置讲解

java相关配置讲解

时间:2023-09-20 16:59:22浏览次数:27  
标签:10.1 java true app 配置 ncl 讲解 http com

  1 spring:
  2   application:
  3     name: app-service-qms #指定服务名称
   4 profiles: 5 active: sit #指定本次启动服务运行环境 6 7 server: 8 port: 20001 9 ws: 10 endpoint: 9999/MsgTrackSrvPortType/R13402003193?wsdl 11 12 cron: 13 caUserIncr: 0 0 5 * * ? 14 caOrgIncr: 0 0 5 * * ? 15 caOrgAll: 0 0 17 28 10 ? 2019 16 caUserAll: 0 0 18 28 10 ? 2019 17 userComIncr: 0 0 8 * * ? 18 noticeTrack: 0 0 0 * * ? 19 loginOverTime: 0 0 0 * * ? 20 21 nqconfig: 22 apiKey: 284bcc4549210d646c6b39373ca78d1f 23 url: http://iam.newchinalife.com/ngiam-rst/v1/sdk/login/validUserPwd 24 25 unify: 26 enableSendCode: false 27 --- 28 spring: 29 profiles: local_sit 30 cloud: 31 config: 32 uri: http://10.1.105.178:39001/ 33 profile: local_sit,common 34 name: ${spring.application.name} 35 label: default 36 retry: 3 37 --- 38 #############################################开发环境配置######################################################## 39 40 spring: 41 profiles: sit 42 autoconfigure: 43 exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure,org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration 44 redis: 45 host: 10.202.33.82 46 port: 6379 47 password: sinosoft 48 lettuce: 49 pool: 50 max-active: 15 51 min-idle: 5 52 datasource: 53 dynamic: 54 druid: 55 initial-size: 10 56 max-active: 10 57 min-idle: 10 58 max-wait: -1 59 min-evictable-idle-time-millis: 30000 60 max-evictable-idle-time-millis: 30000 61 time-between-eviction-runs-millis: 0 62 validation-query: select 1 from dual 63 validation-query-timeout: -1 64 test-on-borrow: false 65 test-on-return: false 66 test-while-idle: true 67 pool-prepared-statements: true 68 max-open-prepared-statements: 100 69 filters: stat,wall,config 70 share-prepared-statements: true 71 connection-properties: 72 config.decrypt: true 73 config.decrypt.key: MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBANnVkfwFPVuATYSjWF7KK3dK3SCmZpHJUXoYy4KLUNTydCGAP6ifiwGFCOit2QAeo/FzBVwe91fiT1bHaKp9CmcCAwEAAQ== 74 datasource: 75 master: 76 username: ncl 77 password: ajKX4vsW87tQm0hIij4yCjUpI6mr1lJYIE8Ra4+tFsKuPmPIStzMEn52YEvw9MwVr0XEdAPQWgU+gICEz+sFnw== 78 url: jdbc:mysql://10.202.33.83:3306/uw_sit?useUnicode=true&characterEncoding=UTF-8&useSSL=false 79 driver-class-name: com.mysql.jdbc.Driver 80 druid: 81 initial-size: 5 82 mybatis-plus: 83 # 如果是放在src/main/java目录下 classpath:/com/yourpackage/*/mapper/*Mapper.xml 84 # 如果是放在resource目录 classpath:/mapper/*Mapper.xml 85 mapper-locations: classpath:/mappers/**/*Mapper.xml 86 #实体扫描,多个package用逗号或者分号分隔 87 typeAliasesPackage: com.sinosoft.sss.common.entity.mysql,com.sinosoft.sss.common.entity.oracle 88 global-config: 89 id-type: 3 90 field-strategy: 2 91 #驼峰下划线转换 92 db-column-underline: true 93 key-generator: com.baomidou.mybatisplus.incrementer.OracleKeyGenerator 94 #逻辑删除配置(下面3个配置) 95 logic-delete-value: 1 96 logic-not-delete-value: 0 97 configuration: 98 map-underscore-to-camel-case: true 99 cache-enabled: false 100 jdbc-type-for-null: 'null' 101 keygenPath: key/pkey.gem 102 103 task: 104 url: http://10.1.105.104:8097/immed-push/api/message/receive/task 105 106 sendBasic: 107 pwd: HBHPHBSX123 108 109 ocr: 110 url: http://10.1.104.212:80/ibis/recog/handleLimit?requestData= 111 #FTP地址外勤 112 ods: 113 sourcePath: /send/ods/ 114 targetPath: /app/app/data/ 115 #targetPath: E:/ods/ 116 host : 10.1.188.142 117 port : 22 118 userName : hbs 119 passWord : n8d5w2b5Y7Z4 120 121 notice: 122 sourcePath: /app/app/data/notice/ 123 targetPath: /app/app/data/ 124 #targetPath: E:/ods/ 125 host : 10.202.23.2 126 #port : 22 #sftp服务器端口号 127 #userName : user01 #sftp服务器用户名 128 #passWord : Hbssx@1234! #sftp服务器密码 129 port : 23 #ftp服务器端口号 130 userName : admin # ftp服务器用户名 131 passWord : HSDF12qwe1tyuh4bOl #ftp服务器密码 132 133 ca: 134 authorization : MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCC5+/Qo+NJTl0iUgmkx6uH3GQUJPgXd111fzuzB47eQzKsjTCwRxnOJfEK8DG5Xk9WXdLsnhmWa1piStCWHeRV5aZy4xhjRwRbDHRkgOlr35NS0uM4Xuf9kthaxxlz+U1LYuiy3MZQOKWqhhVZqV7P/TMseKYq1wVi90XYMSIMawIDAQAB 135 urlIncr: http://iamadm.newchinalife.com/ngiam-rst/v1/api/nclid/pageQueryTypeUsersByTime? 136 urlAll: http://iamadm.newchinalife.com/ngiam-rst/v1/api/nclid/pageQueryTypeUsers? 137 urlOrgAll: http://iamadm.newchinalife.com/ngiam-rst/v1/api/nclid/pageQueryOrgs? 138 pageSize: 100 139 140 oss: 141 AccessKeyID: LTAIUB4RIzRZ0D67 142 AccessKeySecret: Rouoi1rlHASRYVpi2LboJWOR0DZ6gm 143 bucketID: uwnewchinalife 144 #endPoint: uwnewchinalife.oss-cn-beijing.aliyuncs.com 145 endPoint: 10.202.49.76 146 filePath: headImages/ 147 insideImageFolder: headImages/inside/ 148 outsideImageFolder: headImages/outside/ 149 fileFolder: files/ 150 videoFolder: videos/ 151 picFolder: pic/ 152 wwwFolder: downloadSit/ 153 appFile: SIT/ 154 155 unify: 156 enableSendCode: false 157 158 --- 159 #############################################测试环境配置######################################################## 160 spring: 161 profiles: uat 162 autoconfigure: 163 exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure,org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration 164 redis: 165 cluster: 166 nodes: 167 - 10.1.105.174:6379 168 - 10.1.105.175:6379 169 - 10.1.105.176:6379 170 - 10.1.105.174:7000 171 - 10.1.105.175:7000 172 - 10.1.105.176:7000 173 password: sinosoft123 174 lettuce: 175 pool: 176 max-active: 15 177 min-idle: 5 178 datasource: 179 dynamic: 180 druid: 181 initial-size: 10 182 max-active: 10 183 min-idle: 10 184 max-wait: -1 185 min-evictable-idle-time-millis: 30000 186 max-evictable-idle-time-millis: 30000 187 time-between-eviction-runs-millis: 0 188 validation-query: select 1 from dual 189 validation-query-timeout: -1 190 test-on-borrow: false 191 test-on-return: false 192 test-while-idle: true 193 pool-prepared-statements: true 194 max-open-prepared-statements: 100 195 filters: stat,wall,config 196 share-prepared-statements: true 197 connection-properties: 198 config.decrypt: true 199 config.decrypt.key: MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAKuX8IpO8XA1xjElQk70ZQaJvFxIdxzEqmZbNflvK4zp/NYzEYdH3BJEVxrUWugskhGBNjKbx5s1FbwGtYcjzGECAwEAAQ== 200 datasource: 201 master: 202 username: ncl 203 password: mwKROY8z/sNcGJNN9Bc3EMWxpNAze9f2QBebcMDiSq22q2DEu1LjJ6mx0iO87xORRZvdMvRDsyn2bxfLC++kUg== 204 url: jdbc:mysql://10.202.23.25:3306/uw_uat?useUnicode=true&characterEncoding=UTF-8&useSSL=false 205 driver-class-name: com.mysql.jdbc.Driver 206 druid: 207 initial-size: 5 208 mybatis-plus: 209 # 如果是放在src/main/java目录下 classpath:/com/yourpackage/*/mapper/*Mapper.xml 210 # 如果是放在resource目录 classpath:/mapper/*Mapper.xml 211 mapper-locations: classpath:/mappers/**/*Mapper.xml 212 #实体扫描,多个package用逗号或者分号分隔 213 typeAliasesPackage: com.sinosoft.sss.common.entity.mysql,com.sinosoft.sss.common.entity.oracle 214 global-config: 215 id-type: 3 216 field-strategy: 2 217 #驼峰下划线转换 218 db-column-underline: true 219 key-generator: com.baomidou.mybatisplus.incrementer.OracleKeyGenerator 220 #逻辑删除配置(下面3个配置) 221 logic-delete-value: 1 222 logic-not-delete-value: 0 223 configuration: 224 map-underscore-to-camel-case: true 225 cache-enabled: false 226 jdbc-type-for-null: 'null' 227 keygenPath: key/pkey.gem 228 229 interfaceip-map: 230 keyMap: {nclp1: esb_i,ncl_ip2: chnlstarclub,ncl_ip3: crm,ncl_ip4: hbase,ncl_ip5: sms,ncl_ip6: esbP00001003196} 231 interfaceIpKeyMap: {ncl_ip1: '10.1.73.1:8111',ncl_ip2: '10.1.102.251:9080',ncl_ip3: '192.168.169.18:8000',ncl_ip4: '10.1.100.1:8080',ncl_ip5: '10.1.108.37:8080',ncl_ip6: '10.1.73.1:8111'} 232 233 task: 234 url: http://10.1.105.104:8097/immed-push/api/message/receive/task 235 236 sendBasic: 237 pwd: HBHPHBSX123 238 239 ocr: 240 url: http://10.1.104.212:80/ibis/recog/handleLimit?requestData= 241 242 #FTP地址外勤 243 ods: 244 sourcePath: /send/ods/ 245 targetPath: /app/app/data/ 246 #targetPath: E:/ods/ 247 host : 10.1.188.142 248 port : 22 249 userName : hbs 250 passWord : n8d5w2b5Y7Z4 251 252 notice: 253 sourcePath: /app/app/data/notice/ 254 targetPath: /app/app/data/ 255 #targetPath: E:/ods/ 256 host : 10.202.23.2 257 #port : 22 #sftp服务器端口号 258 #userName : user01 #sftp服务器用户名 259 #passWord : Hbssx@1234! #sftp服务器密码 260 port : 23 #ftp服务器端口号 261 userName : admin # ftp服务器用户名 262 passWord : HSDF12qwe1tyuh4bOl #ftp服务器密码 263 264 ca: 265 authorization : MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCC5+/Qo+NJTl0iUgmkx6uH3GQUJPgXd111fzuzB47eQzKsjTCwRxnOJfEK8DG5Xk9WXdLsnhmWa1piStCWHeRV5aZy4xhjRwRbDHRkgOlr35NS0uM4Xuf9kthaxxlz+U1LYuiy3MZQOKWqhhVZqV7P/TMseKYq1wVi90XYMSIMawIDAQAB 266 urlIncr: http://iamadm.newchinalife.com/ngiam-rst/v1/api/nclid/pageQueryTypeUsersByTime? 267 urlAll: http://iamadm.newchinalife.com/ngiam-rst/v1/api/nclid/pageQueryTypeUsers? 268 urlOrgAll: http://iamadm.newchinalife.com/ngiam-rst/v1/api/nclid/pageQueryOrgs? 269 pageSize: 100 270 271 oss: 272 AccessKeyID: LTAIUB4RIzRZ0D67 273 AccessKeySecret: Rouoi1rlHASRYVpi2LboJWOR0DZ6gm 274 bucketID: uwnewchinalife 275 #endPoint: uwnewchinalife.oss-cn-beijing.aliyuncs.com 276 endPoint: 10.202.49.76 277 filePath: headImages/ 278 insideImageFolder: headImages/inside/ 279 outsideImageFolder: headImages/outside/ 280 fileFolder: files/ 281 videoFolder: videos/ 282 picFolder: pic/ 283 wwwFolder: downloadUat/ 284 appFile: UAT/ 285 286 --- 287 #############################################回归环境配置######################################################## 288 289 spring: 290 profiles: pre 291 autoconfigure: 292 exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure,org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration 293 redis: 294 cluster: 295 nodes: 296 - 10.1.105.174:6379 297 - 10.1.105.175:6379 298 - 10.1.105.176:6379 299 - 10.1.105.174:7000 300 - 10.1.105.175:7000 301 - 10.1.105.176:7000 302 password: sinosoft123 303 lettuce: 304 pool: 305 max-active: 15 306 min-idle: 5 307 datasource: 308 dynamic: 309 druid: 310 initial-size: 10 311 max-active: 10 312 min-idle: 10 313 max-wait: -1 314 min-evictable-idle-time-millis: 30000 315 max-evictable-idle-time-millis: 30000 316 time-between-eviction-runs-millis: 0 317 validation-query: select 1 from dual 318 validation-query-timeout: -1 319 test-on-borrow: false 320 test-on-return: false 321 test-while-idle: true 322 pool-prepared-statements: true 323 max-open-prepared-statements: 100 324 filters: stat,wall,config 325 share-prepared-statements: true 326 connection-properties: 327 config.decrypt: true 328 config.decrypt.key: MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAKuX8IpO8XA1xjElQk70ZQaJvFxIdxzEqmZbNflvK4zp/NYzEYdH3BJEVxrUWugskhGBNjKbx5s1FbwGtYcjzGECAwEAAQ== 329 datasource: 330 master: 331 username: ncl 332 password: mwKROY8z/sNcGJNN9Bc3EMWxpNAze9f2QBebcMDiSq22q2DEu1LjJ6mx0iO87xORRZvdMvRDsyn2bxfLC++kUg== 333 url: jdbc:mysql://10.1.104.113:3306/uw_pre?useUnicode=true&characterEncoding=UTF-8&useSSL=false 334 driver-class-name: com.mysql.jdbc.Driver 335 druid: 336 initial-size: 5 337 mybatis-plus: 338 # 如果是放在src/main/java目录下 classpath:/com/yourpackage/*/mapper/*Mapper.xml 339 # 如果是放在resource目录 classpath:/mapper/*Mapper.xml 340 mapper-locations: classpath:/mappers/**/*Mapper.xml 341 #实体扫描,多个package用逗号或者分号分隔 342 typeAliasesPackage: com.sinosoft.sss.common.entity.mysql,com.sinosoft.sss.common.entity.oracle 343 global-config: 344 id-type: 3 345 field-strategy: 2 346 #驼峰下划线转换 347 db-column-underline: true 348 key-generator: com.baomidou.mybatisplus.incrementer.OracleKeyGenerator 349 #逻辑删除配置(下面3个配置) 350 logic-delete-value: 1 351 logic-not-delete-value: 0 352 configuration: 353 map-underscore-to-camel-case: true 354 cache-enabled: false 355 jdbc-type-for-null: 'null' 356 keygenPath: key/pkey.gem 357 #web服务器配置 358 server: 359 servlet: 360 session: 361 cookie: 362 secure: true 363 http-only: true 364 365 task: 366 url: http://10.1.105.104:8097/immed-push/api/message/receive/task 367 368 sendBasic: 369 pwd: HBHPHBSX123 370 371 ocr: 372 url: http://10.1.104.212:80/ibis/recog/handleLimit?requestData= 373 374 interfaceip-map: 375 keyMap: {nclp1: esb_i,ncl_ip2: chnlstarclub,ncl_ip3: crm,ncl_ip4: hbase,ncl_ip5: sms,ncl_ip6: esbP00001003196} 376 interfaceIpKeyMap: {ncl_ip1: '10.1.73.1:8111',ncl_ip2: '10.1.102.251:9080',ncl_ip3: '192.168.169.18:8000',ncl_ip4: '10.1.100.1:8080',ncl_ip5: '10.1.108.37:8080',ncl_ip6: '10.1.66.2:8111'} 377 378 nqconfig: 379 apiKey: 284bcc4549210d646c6b39373ca78d1f 380 url: http://iam.newchinalife.com/ngiam-rst/v1/sdk/login/validUserPwd 381 382 #FTP地址外勤 383 ods: 384 sourcePath: /send/ods/ 385 targetPath: /app/app/data/ 386 #targetPath: E:/ods/ 387 host : 10.1.188.142 388 port : 22 389 userName : hbs 390 passWord : n8d5w2b5Y7Z4 391 392 notice: 393 sourcePath: /app/app/data/notice/ 394 targetPath: /app/app/data/ 395 #targetPath: E:/ods/ 396 host : 10.202.23.2 397 #port : 22 #sftp服务器端口号 398 #userName : user01 #sftp服务器用户名 399 #passWord : Hbssx@1234! #sftp服务器密码 400 port : 23 #ftp服务器端口号 401 userName : admin # ftp服务器用户名 402 passWord : hbssx1212@2021 #ftp服务器密码 403 404 ca: 405 authorization : MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCC5+/Qo+NJTl0iUgmkx6uH3GQUJPgXd111fzuzB47eQzKsjTCwRxnOJfEK8DG5Xk9WXdLsnhmWa1piStCWHeRV5aZy4xhjRwRbDHRkgOlr35NS0uM4Xuf9kthaxxlz+U1LYuiy3MZQOKWqhhVZqV7P/TMseKYq1wVi90XYMSIMawIDAQAB 406 urlIncr: http://10.1.20.89/ngiam-rst/v1/api/nclid/pageQueryTypeUsersByTime? 407 urlAll: http://10.1.20.89/ngiam-rst/v1/api/nclid/pageQueryTypeUsers? 408 urlOrgAll: http://10.1.20.89/ngiam-rst/v1/api/nclid/pageQueryOrgs? 409 pageSize: 100 410 411 oss: 412 AccessKeyID: LTAIUB4RIzRZ0D67 413 AccessKeySecret: Rouoi1rlHASRYVpi2LboJWOR0DZ6gm 414 bucketID: uwnewchinalife 415 #endPoint: uwnewchinalife.oss-cn-beijing.aliyuncs.com 416 endPoint: 10.202.49.77 417 filePath: headImages/ 418 insideImageFolder: headImages/inside/ 419 outsideImageFolder: headImages/outside/ 420 fileFolder: files/ 421 videoFolder: videos/ 422 picFolder: pic/ 423 wwwFolder: downloadPre/ 424 appFile: PRE/ 425 426 --- 427 #############################################生产环境配置######################################################## 428 429 spring: 430 profiles: prod 431 cloud: 432 config: 433 uri: http://10.202.7.149:39001/,http://10.202.7.150:39001/ 434 profile: prod 435 name: ${spring.application.name} 436 label: default 437 retry: 3 438 server: 439 tomcat: 440 basedir=/app:

 

标签:10.1,java,true,app,配置,ncl,讲解,http,com
From: https://www.cnblogs.com/onebotwolang/p/17717739.html

相关文章

  • nginx配置文件root 与 alias的区别
    假如服务器路径为:/home/imooc/files/img/face.pngroot路径完全匹配访问配置的时候为:location/imooc{ root/home}用户访问的时候请求为:url:port/imooc/files/img/face.pngalias可以为你的路径做一个别名,对用户透明配置的时候为:location/hello{ root/home/im......
  • 无涯教程-JavaScript - BETA.DIST函数
    描述BETA.DIST函数返回beta分布。Beta分布通常用于研究样品中某物百分比的变化。语法BETA.DIST(x,alpha,beta,cumulative,[A],[B])争论Argument描述Required/OptionalXThevaluebetweenAandBatwhichtoevaluatethefunction.RequiredAlphaAparameterof......
  • Java学习之路--GUI编程01
    packagecom.gui.lesson01;importjava.awt.*;importjava.awt.event.WindowAdapter;importjava.awt.event.WindowEvent;//GUI编程课堂练习exercise--练习2023.3.14publicclassExerciseDemo{publicstaticvoidmain(String[]args){//总的Frame窗口F......
  • Java学习之路--网络编程相关01
    packagecom.kuang.lesson01;importjava.net.InetAddress;importjava.net.UnknownHostException;//2023.2.28/3.1Java狂神说-网络编程实战-IP地址publicclassTestnetAddress{publicstaticvoidmain(String[]args){//测试iptry{//查询......
  • Java学习之路--网络编程相关02
    packagecom.kuang.lesson02;importjava.io.IOException;importjava.io.OutputStream;importjava.net.InetAddress;importjava.net.Socket;importjava.net.UnknownHostException;//客户端2023.3.4TCP建立客户端和服务端实现信息发送功能publicclassTcpClientDemo01{......
  • node express 相关配置
     hbuilderX直接安装/或者通过命令行``npminit``安装###安装express``npminstallexpress--save``在app.js中引入express```js//引入express框架,并使用expressconstexpress=require('express')constapp=express()```express官网https://www.expressjs......
  • Java学习之路--网络编程相关03
    packagecom.kuang.lesson03;importjava.net.DatagramPacket;importjava.net.DatagramSocket;importjava.net.InetAddress;//2023.3.6UDP通信方式实现发送消息----不需要连接服务器publicclassUdpClientDemo01{publicstaticvoidmain(String[]args)throwsExcepti......
  • Java学习之路--网络编程相关04
    packagecom.kuang.lesson04;importjava.net.MalformedURLException;importjava.net.URL;//2023.3.8/9URL下载网络资源publicclassURLDemo01{publicstaticvoidmain(String[]args)throwsMalformedURLException{URLurl=newURL("https://localhost:......
  • Java学习之路--thread--多线程相关
    packagecom.thread;/*进程:一个进程里包含多个线程,程序运行起来就叫进程线程:线程是程序中执行的线程*/publicclassDemo01{}//packagecom.thread;//模拟龟兔赛跑publicclassRaceimplementsRunnable{//胜利者privatestaticStringwinner;privateintsteps;......
  • SkyWalking使用讲解
    目录1SkyWalking1.1简介1.2如何选择1.3Skywalking架构1.4服务端搭建1.4.1下载安装包1.4.2配置修改1.4.2.1config/application.yml1.4.2.2webapp/webapp.yml1.4.3启动服务1.5客户端搭建1.6数据持久化1.6.1修改配置文件1.6.2添加MySQL的jdbc依赖1.7日志监控1.7.1添......