diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml index 5a29946..be6bc21 100644 --- a/src/main/resources/application-dev.yml +++ b/src/main/resources/application-dev.yml @@ -3,32 +3,12 @@ server: context-path: / port: 8080 -spring: - application: - name: graphite_digestion_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: - # 如果需要加载 XML 文件(自定义 SQL),可配置 mapper-locations: - mapper-locations: classpath*:mapper/*.xml - #开启 SQL 打印,调试时方便查看 logging: level: root: INFO org.mybatis: DEBUG -springdoc: - default-flat-param-object: true - device.enableCanBus: true iflytophald: diff --git a/src/main/resources/application-prod.yml b/src/main/resources/application-prod.yml index 5a29946..3e5c70f 100644 --- a/src/main/resources/application-prod.yml +++ b/src/main/resources/application-prod.yml @@ -3,32 +3,6 @@ server: context-path: / port: 8080 -spring: - application: - name: graphite_digestion_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: - # 如果需要加载 XML 文件(自定义 SQL),可配置 mapper-locations: - mapper-locations: classpath*:mapper/*.xml - -#开启 SQL 打印,调试时方便查看 -logging: - level: - root: INFO - org.mybatis: DEBUG - -springdoc: - default-flat-param-object: true - device.enableCanBus: true iflytophald: diff --git a/src/main/resources/application-test.yml b/src/main/resources/application-test.yml index 5a29946..be6bc21 100644 --- a/src/main/resources/application-test.yml +++ b/src/main/resources/application-test.yml @@ -3,32 +3,12 @@ server: context-path: / port: 8080 -spring: - application: - name: graphite_digestion_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: - # 如果需要加载 XML 文件(自定义 SQL),可配置 mapper-locations: - mapper-locations: classpath*:mapper/*.xml - #开启 SQL 打印,调试时方便查看 logging: level: root: INFO org.mybatis: DEBUG -springdoc: - default-flat-param-object: true - device.enableCanBus: true iflytophald: diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index caf4dfc..8d4ca01 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -1,3 +1,21 @@ spring: profiles: - active: dev \ No newline at end of file + active: dev + application: + name: graphite_digestion_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: + # 如果需要加载 XML 文件(自定义 SQL),可配置 mapper-locations: + mapper-locations: classpath*:mapper/*.xml + +springdoc: + default-flat-param-object: true \ No newline at end of file