From 0bf8068778a9e2d8289b796132b093829c13b203 Mon Sep 17 00:00:00 2001 From: myh Date: Sat, 11 Nov 2023 19:14:22 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E6=9B=B4?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 6 ++++++ src/main/resources/application.properties | 6 +++--- src/main/resources/hibernate.cfg.xml | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index 5b5d240..6b2caa2 100644 --- a/pom.xml +++ b/pom.xml @@ -70,6 +70,12 @@ hibernate-core 6.2.7.Final + + + jakarta.xml.bind + jakarta.xml.bind-api + 4.0.1 + diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 6499485..c5d5565 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,12 +1,12 @@ spring.datasource.driver-class-name=com.microsoft.sqlserver.jdbc.SQLServerDriver server.port=8080 -spring.datasource.url=jdbc:sqlserver://152.136.182.168:1433;\ +spring.datasource.url=jdbc:sqlserver://intpointer.com:1433;\ databaseName=Elm;\ encrypt=true;\ trustServerCertificate=true;\ loginTimeout=30; -spring.datasource.username=guest -spring.datasource.password= +spring.datasource.username=myh +spring.datasource.password=20231103#MS_Sql spring.jpa.hibernate.ddl-auto=none spring.jpa.show-sql=true spring.jpa.properties.hibernate.format_sql=true diff --git a/src/main/resources/hibernate.cfg.xml b/src/main/resources/hibernate.cfg.xml index 87a193b..c7641ce 100644 --- a/src/main/resources/hibernate.cfg.xml +++ b/src/main/resources/hibernate.cfg.xml @@ -6,7 +6,7 @@ com.microsoft.sqlserver.jdbc.SQLServerDriver - jdbc:sqlserver://152.136.182.168:1433;\ + jdbc:sqlserver://intpointer.com:1433;\ databaseName=Elm;\ encrypt=true;\ trustServerCertificate=true;\