From 6112fa3065313b501de8823d8f1ff918575b3773 Mon Sep 17 00:00:00 2001 From: zhang <zc857179121@qq.com> Date: 星期五, 29 八月 2025 14:46:39 +0800 Subject: [PATCH] 1 --- zy-acs-manager/src/main/resources/application.yml | 87 -------------- zy-acs-manager/src/main/resources/application-prod.yml | 87 ++++++++++++++ zy-acs-manager/src/main/resources/application-dev.yml | 87 ++++++++++++++ zy-acs-manager/src/main/resources/application-test.yml | 86 ++++++++++++++ 4 files changed, 262 insertions(+), 85 deletions(-) diff --git a/zy-acs-manager/src/main/resources/application-dev.yml b/zy-acs-manager/src/main/resources/application-dev.yml new file mode 100644 index 0000000..ab9628f --- /dev/null +++ b/zy-acs-manager/src/main/resources/application-dev.yml @@ -0,0 +1,87 @@ + +server: + port: 8088 +spring: + application: + name: @pom.artifactId@ + mvc: + static-path-pattern: /** + datasource: + driver-class-name: com.mysql.jdbc.Driver + url: jdbc:mysql://127.0.0.1:3306/jbly?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai + username: root + password: xltys1995 + type: com.alibaba.druid.pool.DruidDataSource + druid: + initial-size: 5 + min-idle: 5 + max-active: 20 + max-wait: 30000 + time-between-eviction-runs-millis: 60000 + min-evictable-idle-time-millis: 300000 + test-while-idle: true + test-on-borrow: true + test-on-return: false + remove-abandoned: true + remove-abandoned-timeout: 1800 + #pool-prepared-statements: false + #max-pool-prepared-statement-per-connection-size: 20 + filters: stat, wall + validation-query: SELECT 'x' + aop-patterns: com.zy.*.*.service.* + stat-view-servlet: + url-pattern: /druid/* + reset-enable: true + login-username: admin + login-password: admin + enabled: true + servlet: + multipart: + maxFileSize: 100MB + maxRequestSize: 100MB + jmx: + enabled: false + +redis: + host: 127.0.0.1 + password: xltys1995 + port: 6379 + max: 30 + min: 10 + timeout: 5000 + index: 4 + +floyd: + enable: false + +eureka: + client: + enabled: false + serviceUrl: + defaultZone: http://192.168.2.46:8765/eureka/ + +mybatis-plus: + mapper-locations: classpath:mapper/*/*.xml + # global-config: + # field-strategy: 0 + configuration: + # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl + map-underscore-to-camel-case: true + cache-enabled: true + global-config: + :banner: false + db-config: + id-type: auto + logic-delete-value: 1 + logic-not-delete-value: 0 + +logging: + file: + path: stock/out/rcs-manager/logs + +config: + open-office-home: C + swagger-base-package: com.zy.acs + swagger-title: ACS API鏂囨。 + swagger-version: 1.0 + token-key: KUHSMcYQ4lePt3r6bckz0P13cBJyoonYqInThvQlUnbsFCIcCcZZAbWZ6UNFztYNYPhGdy6eyb8WdIz8FU2Cz396TyTJk3NI2rtXMHBOehRb4WWJ4MdYVVg2oWPyqRQ2 \ No newline at end of file diff --git a/zy-acs-manager/src/main/resources/application-prod.yml b/zy-acs-manager/src/main/resources/application-prod.yml new file mode 100644 index 0000000..f99e46b --- /dev/null +++ b/zy-acs-manager/src/main/resources/application-prod.yml @@ -0,0 +1,87 @@ + +server: + port: 8088 +spring: + application: + name: @pom.artifactId@ + mvc: + static-path-pattern: /** + datasource: + driver-class-name: com.mysql.jdbc.Driver + url: jdbc:mysql://127.0.0.1:3306/jbly?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai + username: root + password: xltys1995 + type: com.alibaba.druid.pool.DruidDataSource + druid: + initial-size: 5 + min-idle: 5 + max-active: 20 + max-wait: 30000 + time-between-eviction-runs-millis: 60000 + min-evictable-idle-time-millis: 300000 + test-while-idle: true + test-on-borrow: true + test-on-return: false + remove-abandoned: true + remove-abandoned-timeout: 1800 + #pool-prepared-statements: false + #max-pool-prepared-statement-per-connection-size: 20 + filters: stat, wall + validation-query: SELECT 'x' + aop-patterns: com.zy.*.*.service.* + stat-view-servlet: + url-pattern: /druid/* + reset-enable: true + login-username: admin + login-password: admin + enabled: true + servlet: + multipart: + maxFileSize: 100MB + maxRequestSize: 100MB + jmx: + enabled: false + +redis: + host: 127.0.0.1 + password: xltys1995 + port: 6379 + max: 30 + min: 10 + timeout: 5000 + index: 3 + +floyd: + enable: false + +eureka: + client: + enabled: false + serviceUrl: + defaultZone: http://192.168.2.46:8765/eureka/ + +mybatis-plus: + mapper-locations: classpath:mapper/*/*.xml + # global-config: + # field-strategy: 0 + configuration: + # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl + map-underscore-to-camel-case: true + cache-enabled: true + global-config: + :banner: false + db-config: + id-type: auto + logic-delete-value: 1 + logic-not-delete-value: 0 + +logging: + file: + path: stock/out/rcs-manager/logs + +config: + open-office-home: C + swagger-base-package: com.zy.acs + swagger-title: ACS API鏂囨。 + swagger-version: 1.0 + token-key: KUHSMcYQ4lePt3r6bckz0P13cBJyoonYqInThvQlUnbsFCIcCcZZAbWZ6UNFztYNYPhGdy6eyb8WdIz8FU2Cz396TyTJk3NI2rtXMHBOehRb4WWJ4MdYVVg2oWPyqRQ2 \ No newline at end of file diff --git a/zy-acs-manager/src/main/resources/application-test.yml b/zy-acs-manager/src/main/resources/application-test.yml new file mode 100644 index 0000000..2abe714 --- /dev/null +++ b/zy-acs-manager/src/main/resources/application-test.yml @@ -0,0 +1,86 @@ +server: + port: 8088 +spring: + application: + name: @pom.artifactId@ + mvc: + static-path-pattern: /** + datasource: + driver-class-name: com.mysql.jdbc.Driver + url: jdbc:mysql://10.10.10.200:3306/jbly_dev?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai + username: root + password: xltys1995 + type: com.alibaba.druid.pool.DruidDataSource + druid: + initial-size: 5 + min-idle: 5 + max-active: 20 + max-wait: 30000 + time-between-eviction-runs-millis: 60000 + min-evictable-idle-time-millis: 300000 + test-while-idle: true + test-on-borrow: true + test-on-return: false + remove-abandoned: true + remove-abandoned-timeout: 1800 + #pool-prepared-statements: false + #max-pool-prepared-statement-per-connection-size: 20 + filters: stat, wall + validation-query: SELECT 'x' + aop-patterns: com.zy.*.*.service.* + stat-view-servlet: + url-pattern: /druid/* + reset-enable: true + login-username: admin + login-password: admin + enabled: true + servlet: + multipart: + maxFileSize: 100MB + maxRequestSize: 100MB + jmx: + enabled: false + +redis: + host: 10.10.10.200 + password: xltys1995 + port: 6379 + max: 30 + min: 10 + timeout: 5000 + index: 4 + +floyd: + enable: false + +eureka: + client: + enabled: false + serviceUrl: + defaultZone: http://192.168.2.46:8765/eureka/ + +mybatis-plus: + mapper-locations: classpath:mapper/*/*.xml + # global-config: + # field-strategy: 0 + configuration: + # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl + map-underscore-to-camel-case: true + cache-enabled: true + global-config: + :banner: false + db-config: + id-type: auto + logic-delete-value: 1 + logic-not-delete-value: 0 + +logging: + file: + path: stock/out/rcs-manager/logs + +config: + open-office-home: C + swagger-base-package: com.zy.acs + swagger-title: ACS API鏂囨。 + swagger-version: 1.0 + token-key: KUHSMcYQ4lePt3r6bckz0P13cBJyoonYqInThvQlUnbsFCIcCcZZAbWZ6UNFztYNYPhGdy6eyb8WdIz8FU2Cz396TyTJk3NI2rtXMHBOehRb4WWJ4MdYVVg2oWPyqRQ2 \ No newline at end of file diff --git a/zy-acs-manager/src/main/resources/application.yml b/zy-acs-manager/src/main/resources/application.yml index 400bef4..027b4e3 100644 --- a/zy-acs-manager/src/main/resources/application.yml +++ b/zy-acs-manager/src/main/resources/application.yml @@ -1,86 +1,3 @@ -server: - port: 8088 spring: - application: - name: @pom.artifactId@ - mvc: - static-path-pattern: /** - datasource: - driver-class-name: com.mysql.jdbc.Driver - url: jdbc:mysql://127.0.0.1:3306/jbly?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai - username: root - password: xltys1995 - type: com.alibaba.druid.pool.DruidDataSource - druid: - initial-size: 5 - min-idle: 5 - max-active: 20 - max-wait: 30000 - time-between-eviction-runs-millis: 60000 - min-evictable-idle-time-millis: 300000 - test-while-idle: true - test-on-borrow: true - test-on-return: false - remove-abandoned: true - remove-abandoned-timeout: 1800 - #pool-prepared-statements: false - #max-pool-prepared-statement-per-connection-size: 20 - filters: stat, wall - validation-query: SELECT 'x' - aop-patterns: com.zy.*.*.service.* - stat-view-servlet: - url-pattern: /druid/* - reset-enable: true - login-username: admin - login-password: admin - enabled: true - servlet: - multipart: - maxFileSize: 100MB - maxRequestSize: 100MB - jmx: - enabled: false - -redis: - host: 127.0.0.1 - password: xltys1995 - port: 6379 - max: 30 - min: 10 - timeout: 5000 - index: 3 - -floyd: - enable: false - -eureka: - client: - enabled: false - serviceUrl: - defaultZone: http://192.168.2.46:8765/eureka/ - -mybatis-plus: - mapper-locations: classpath:mapper/*/*.xml - # global-config: - # field-strategy: 0 - configuration: - # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl - map-underscore-to-camel-case: true - cache-enabled: true - global-config: - :banner: false - db-config: - id-type: auto - logic-delete-value: 1 - logic-not-delete-value: 0 - -logging: - file: - path: stock/out/rcs-manager/logs - -config: - open-office-home: C - swagger-base-package: com.zy.acs - swagger-title: ACS API鏂囨。 - swagger-version: 1.0 - token-key: KUHSMcYQ4lePt3r6bckz0P13cBJyoonYqInThvQlUnbsFCIcCcZZAbWZ6UNFztYNYPhGdy6eyb8WdIz8FU2Cz396TyTJk3NI2rtXMHBOehRb4WWJ4MdYVVg2oWPyqRQ2 \ No newline at end of file + profiles: + active: test \ No newline at end of file -- Gitblit v1.9.1