配置文件更新

This commit is contained in:
myh 2023-11-11 19:14:22 +08:00
parent 1ffca36f10
commit 0bf8068778
3 changed files with 10 additions and 4 deletions

View File

@ -70,6 +70,12 @@
<artifactId>hibernate-core</artifactId>
<version>6.2.7.Final</version>
</dependency>
<!-- https://mvnrepository.com/artifact/jakarta.xml.bind/jakarta.xml.bind-api -->
<dependency>
<groupId>jakarta.xml.bind</groupId>
<artifactId>jakarta.xml.bind-api</artifactId>
<version>4.0.1</version>
</dependency>
</dependencies>
<build>

View File

@ -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

View File

@ -6,7 +6,7 @@
<session-factory>
<!-- 连接数据库的基本参数 -->
<property name="hibernate.connection.driver_class">com.microsoft.sqlserver.jdbc.SQLServerDriver</property>
<property name="hibernate.connection.url">jdbc:sqlserver://152.136.182.168:1433;\
<property name="hibernate.connection.url">jdbc:sqlserver://intpointer.com:1433;\
databaseName=Elm;\
encrypt=true;\
trustServerCertificate=true;\