From 78ef86f52608b8207c516f840f40528181cc3256 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B?= <1063331231@qq.com> Date: Thu, 12 Jun 2025 19:07:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=B8=8A=E4=BA=A7=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application-prod.yml | 51 +++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 src/main/resources/application-prod.yml diff --git a/src/main/resources/application-prod.yml b/src/main/resources/application-prod.yml new file mode 100644 index 0000000..13d7f2e --- /dev/null +++ b/src/main/resources/application-prod.yml @@ -0,0 +1,51 @@ +server: + servlet: + context-path: / + port: 8080 + +spring: + application: + name: separate_gold_service + datasource: + url: jdbc:sqlite:db/app.db + driver-class-name: org.sqlite.JDBC + sql: + init: + #always embedded never + mode: always + schema-locations: classpath:/sql/init.sql + +mybatis-plus: + configuration: + # 开启 SQL 日志输出(可选) + log-impl: org.apache.ibatis.logging.stdout.StdOutImpl + # 如果需要加载 XML 文件(自定义 SQL),可配置 mapper-locations: + mapper-locations: classpath*:mapper/*.xml + +#开启 SQL 打印,调试时方便查看 +logging: + level: + root: INFO + org.mybatis: error + +springdoc: + default-flat-param-object: true + +command_bus: + +device.enableCanBus: true + +iflytophald: + ip: 127.0.0.1 + cmdch.port: 19004 + datach.port: 19005 + +#window config +#modbus: +# port: COM18 +# baudrate: 9600 + +#工控机 config +modbus: + port: ttyS1 + baudrate: 9600