From 07d2aa00b08c31a7510eb707f55fb870fdc004c7 Mon Sep 17 00:00:00 2001 From: suyiiyii Date: Sat, 17 Aug 2024 00:55:26 +0800 Subject: [PATCH] =?UTF-8?q?refactor(gitignore):=20=E4=BB=8E.gitignore?= =?UTF-8?q?=E4=B8=AD=E7=A7=BB=E9=99=A4application.yaml=E7=A7=BB=E9=99=A4`s?= =?UTF-8?q?rc/main/resources/application.yaml`=E6=96=87=E4=BB=B6=E7=9A=84.?= =?UTF-8?q?gitignore=E6=9D=A1=E7=9B=AE=EF=BC=8C=E4=BB=A5=E4=BE=BF=E5=B0=86?= =?UTF-8?q?=E5=85=B6=E5=8C=85=E5=90=AB=E5=9C=A8=E7=89=88=E6=9C=AC=E6=8E=A7?= =?UTF-8?q?=E5=88=B6=E4=B8=AD=E3=80=82=E6=AD=A4=E5=A4=96=EF=BC=8C=E6=96=B0?= =?UTF-8?q?=E5=A2=9E`src/main/resources/application-prod.yaml`=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E7=9A=84.gitignore=E6=9D=A1=E7=9B=AE=EF=BC=8C?= =?UTF-8?q?=E4=BB=A5=E4=BF=9D=E6=8C=81=E7=8E=AF=E5=A2=83=E7=89=B9=E5=AE=9A?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E4=B8=8D=E5=8F=97=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E6=8E=A7=E5=88=B6=E7=9A=84=E5=BD=B1=E5=93=8D=E3=80=82?= =?UTF-8?q?=E5=90=8C=E6=97=B6=EF=BC=8C=E8=B0=83=E6=95=B4=E4=BA=86`SimsAppl?= =?UTF-8?q?ication`=E7=B1=BB=E4=BB=A5=E5=BC=95=E5=85=A5`@Profile`=E6=B3=A8?= =?UTF-8?q?=E9=87=8A=EF=BC=8C=E4=B8=BA=E4=B8=8D=E5=90=8C=E7=9A=84=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E5=81=9A=E5=A5=BD?= =?UTF-8?q?=E5=87=86=E5=A4=87=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 +- src/main/resources/application.yaml | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 src/main/resources/application.yaml diff --git a/.gitignore b/.gitignore index 7f9912b..0d33ed4 100644 --- a/.gitignore +++ b/.gitignore @@ -31,5 +31,5 @@ build/ ### VS Code ### .vscode/ -/src/main/resources/application.yaml /test.db +/src/main/resources/application-prod.yaml diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml new file mode 100644 index 0000000..2b0fca7 --- /dev/null +++ b/src/main/resources/application.yaml @@ -0,0 +1,14 @@ +# datasource +spring: + profiles: + active: prod + datasource: + url: ${DATASOURCE_URL} + username: ${DATASOURCE_USERNAME} + password: ${DATASOURCE_PASSWORD} + driver-class-name: ${DATASOURCE_DRIVER_CLASS_NAME} + + +auto-table: + enable: true + model-package: top.suyiiyii.sims.entity \ No newline at end of file