فهرست منبع

yml去掉多余配置文件

mashengyi 2 سال پیش
والد
کامیت
c218902f91
1فایلهای تغییر یافته به همراه7 افزوده شده و 74 حذف شده
  1. 7 74
      src/main/resources/application.yml

+ 7 - 74
src/main/resources/application.yml

@@ -4,7 +4,7 @@ server:
   tomcat:
     accesslog:
       enabled: true
-      directory: /home/app/logs/tomcat   #日志存储目录
+      directory: /Users/mashengyi/Documents/MSY/WorkSpace/jkWorkSpace/logs   #日志存储目录
       pattern: '%t %a %A %m %U%q %s %D %I %B'  #日志格式
       prefix: access        #日志文件前缀
       rename-on-rotate: true #是否启用日志轮转
@@ -12,15 +12,9 @@ server:
     max-connections: 20000 # 最大链接数
     min-spare-threads: 100 # 最小空闲线程数
     accept-count: 200
-#  undertow:
-#    # 指定工作者线程的 I/0 线程数,默认为 2 或者 CPU 的个数
-#    io-threads: 2
-#    # 指定工作者线程个数,默认为 I/O 线程个数的 8 倍
-#    worker-threads: 8
 spring:
   application:
     name: invoice
-  #\u4E0A\u4F20\u6587\u4EF6\u5927\u5C0F
   servlet:
     multipart:
       enabled: true
@@ -34,7 +28,6 @@ spring:
     allow-bean-definition-overriding: true
   resources:
     static-locations: classpath:static/,file:static/
-  #    password:
 mybatis-plus:
   mapper-locations: classpath:/mapper/*Mapper.xml,classpath*:/mapper/*/*Mapper.xml
   global-config:
@@ -43,23 +36,13 @@ mybatis-plus:
 logging:
   config: classpath:logback-spring.xml
   path: d:/logs
-#  configuration:
-#    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
-#debug: true
-
 ---
 spring:
   profiles: dev
   datasource:
-    #url: jdbc:mysql://172.31.1.10:3306/db_invoice?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&allowMultiQueries=true
-    #username: root
-    #password: Jkxy@mysql123
-    #url: jdbc:mysql://127.0.0.1:3306/db_invoice?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&allowMultiQueries=true&allowPublicKeyRetrieval=true
-    #username: root
-    #password: root
-    url: jdbc:mysql://172.16.223.133:3306/db_invoice?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&allowMultiQueries=true
-    username: invoice
-    password: invoiceX%190605
+    url: jdbc:mysql://192.168.50.4:3306/db_invoice?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&allowMultiQueries=true
+    username: root
+    password: jk@123
     driver-class-name: com.mysql.jdbc.Driver
     # \u4F7F\u7528druid\u6570\u636E\u6E90
     type: com.alibaba.druid.pool.DruidDataSource
@@ -79,7 +62,7 @@ spring:
       poolPreparedStatements: true # 打开PSCache,并且指定每个连接上PSCache的大小
       maxPoolPreparedStatementPerConnectionSize: 20
       maxOpenPreparedStatements: 20
-          # 通过connectProperties属性来打开mergeSql功能;慢SQL记录
+      # 通过connectProperties属性来打开mergeSql功能;慢SQL记录
       connectionProperties: druid.stat.slowSqlMillis=200;druid.stat.logSlowSql=true;config.decrypt=false
   mail:
     host: smtp.qq.com #邮件发送服务器
@@ -93,34 +76,16 @@ spring:
           auth: true
           enable: true
   redis:
-    host: 172.16.223.134
+    host: 127.0.0.1
     port: 6379
-    password: jiaokedata
-  rabbitmq:
-    host: localhost
-    port: 5672
-    username: guest
-    password: guest
-    publisher-confirms: true
-    publisher-returns: true
-    listener:
-      simple:
-        acknowledge-mode: manual
-        retry:
-          enabled: true
-        concurrency: 10
-        max-concurrency: 10
-      direct:
-        acknowledge-mode: manual
 ---
 spring:
   profiles: prod
   datasource:
-    url: jdbc:mysql://192.168.50.88:3306/db_invoice?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&allowMultiQueries=true
+    url: jdbc:mysql://192.168.50.4:3306/db_invoice?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&allowMultiQueries=true
     username: root
     password: jk@123
     driver-class-name: com.mysql.jdbc.Driver
-    # \u4F7F\u7528druid\u6570\u636E\u6E90
     type: com.alibaba.druid.pool.DruidDataSource
     platform: mysql
     druid:
@@ -140,40 +105,8 @@ spring:
       maxOpenPreparedStatements: 20
       # 通过connectProperties属性来打开mergeSql功能;慢SQL记录
       connectionProperties: druid.stat.slowSqlMillis=200;druid.stat.logSlowSql=true;config.decrypt=false
-      # 合并多个DruidDataSource的监控数据
-      #use-global-data-source-stat: true
-#      #WebStatFilter配置,说明请参考Druid Wiki,配置_配置WebStatFilter
-#      web-stat-filter:
-#        enabled: true #是否启用StatFilter默认值true
-#        url-pattern: /*
-#        exclusions: /druid/*,*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico
-#        session-stat-enable: true
-#        session-stat-max-count: 10
-#      #StatViewServlet配置,说明请参考Druid Wiki,配置_StatViewServlet配置
-#      stat-view-servlet:
-#        enabled: true #是否启用StatViewServlet默认值true
-#        url-pattern: /druid/*
-#        reset-enable: true
-#        login-username: jkxy
-#        login-password: jkxy@2019
   redis:
     host: 127.0.0.1
     port: 6379
     password: lq2uRBsf<vh2ouo
-  rabbitmq:
-    host: 127.0.0.1
-    port: 5672
-    username: guest
-    password: guest
-    publisher-confirms: true
-    publisher-returns: true
-    listener:
-      simple:
-        acknowledge-mode: manual
-        retry:
-          enabled: true
-        concurrency: 10
-        max-concurrency: 10
-      direct:
-        acknowledge-mode: manual