Skip to content

Commit

Permalink
config-采用yml格式的配置文件
Browse files Browse the repository at this point in the history
  • Loading branch information
aruis committed Sep 28, 2024
1 parent a7c59f1 commit 234f674
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 29 deletions.
1 change: 1 addition & 0 deletions my-boot/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ tasks.named('compileJava').configure {

dependencies {
implementation enforcedPlatform(libs.quarkus.platform.bom)
implementation "io.quarkus:quarkus-config-yaml"
implementation project(":my-core")
implementation project(':my-database-std')
implementation project(":my-authorization")
Expand Down
27 changes: 0 additions & 27 deletions my-boot/src/main/resources/application.properties

This file was deleted.

44 changes: 44 additions & 0 deletions my-boot/src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
server:
debug: false

quarkus:
http:
port: 8080
# root-path: /api
rest:
path: /api

datasource:
db-kind: postgresql
username: postgres
password: muyun2024
jdbc:
url: jdbc:postgresql://localhost:54324/muyun
enabled: true
# reactive:
# url: vertx-reactive:postgresql://localhost:54324/muyun

banner:
path: banner.txt

management:
enable-compression: true

log:
category:
"org.jdbi":
level: DEBUG

level: INFO
console:
enable: true
format: "%d{yyyy-MM-dd HH:mm:ss} %-5p [%c{3.}] (%t) %s%e%n"
file:
enable: false
path: logs/muyun.log
level: DEBUG
format: "%d{yyyy-MM-dd HH:mm:ss} %-5p [%c{3.}] (%t) %s%e%n"
rotation:
max-file-count: 7
file-suffix: .yyyy-MM-dd
rotate-on-boot: true
2 changes: 0 additions & 2 deletions my-boot/src/test/resources/application.properties

This file was deleted.

6 changes: 6 additions & 0 deletions my-boot/src/test/resources/application.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
server:
debug: true

quarkus:
rest:
path: /

0 comments on commit 234f674

Please sign in to comment.