Browse Source

fix:默认配置使用dev

master
白凤吉 2 weeks ago
parent
commit
edc2fb0011
  1. 20
      src/main/resources/application-dev.yml
  2. 26
      src/main/resources/application-prod.yml
  3. 20
      src/main/resources/application-test.yml
  4. 18
      src/main/resources/application.yml

20
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:

26
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:

20
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:

18
src/main/resources/application.yml

@ -1,3 +1,21 @@
spring:
profiles:
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
Loading…
Cancel
Save