add JWT properties
This commit is contained in:
parent
f82ed5c415
commit
af0213bb4e
@ -8,6 +8,7 @@ spring.datasource.url=jdbc:sqlserver://106.54.219.245:1433;\
|
|||||||
loginTimeout=30;
|
loginTimeout=30;
|
||||||
spring.datasource.username=myh
|
spring.datasource.username=myh
|
||||||
spring.datasource.password=20231103#MS_Sql
|
spring.datasource.password=20231103#MS_Sql
|
||||||
|
|
||||||
# JPA config
|
# JPA config
|
||||||
spring.jpa.hibernate.ddl-auto=none
|
spring.jpa.hibernate.ddl-auto=none
|
||||||
spring.jpa.show-sql=true
|
spring.jpa.show-sql=true
|
||||||
@ -15,6 +16,11 @@ spring.jpa.properties.hibernate.format_sql=true
|
|||||||
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.SQLServerDialect
|
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.SQLServerDialect
|
||||||
spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
|
spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
|
||||||
spring.jpa.properties.hibernate.enable_lazy_load_no_trans=true
|
spring.jpa.properties.hibernate.enable_lazy_load_no_trans=true
|
||||||
|
spring.jpa.open-in-view=false
|
||||||
|
|
||||||
# spring security config
|
# spring security config
|
||||||
spring.security.user.name=anchor
|
# spring.security.user.name=anchor
|
||||||
spring.security.user.password=20172
|
# spring.security.user.password=20172
|
||||||
|
|
||||||
|
# Jwt default expiration time is 15 minutes
|
||||||
|
app.jwt-expiration-milliseconds = 900000
|
@ -4,26 +4,26 @@
|
|||||||
"http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
|
"http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
|
||||||
<hibernate-configuration>
|
<hibernate-configuration>
|
||||||
<session-factory>
|
<session-factory>
|
||||||
<!-- 连接数据库的基本参数 -->
|
<!-- <!– 连接数据库的基本参数 –>-->
|
||||||
<property name="hibernate.connection.driver_class">com.microsoft.sqlserver.jdbc.SQLServerDriver</property>
|
<!-- <property name="hibernate.connection.driver_class">com.microsoft.sqlserver.jdbc.SQLServerDriver</property>-->
|
||||||
<property name="hibernate.connection.url">jdbc:sqlserver://intpointer.com:1433;\
|
<!-- <property name="hibernate.connection.url">jdbc:sqlserver://intpointer.com:1433;\-->
|
||||||
databaseName=Elm;\
|
<!-- databaseName=Elm;\-->
|
||||||
encrypt=true;\
|
<!-- encrypt=true;\-->
|
||||||
trustServerCertificate=true;\
|
<!-- trustServerCertificate=true;\-->
|
||||||
loginTimeout=30;
|
<!-- loginTimeout=30;-->
|
||||||
</property>
|
<!-- </property>-->
|
||||||
<property name="hibernate.connection.username">myh</property>
|
<!-- <property name="hibernate.connection.username">myh</property>-->
|
||||||
<property name="hibernate.connection.password">20231103#MS_Sql</property>
|
<!-- <property name="hibernate.connection.password">20231103#MS_Sql</property>-->
|
||||||
<!-- 配置Hibernate的方言 -->
|
<!-- <!– 配置Hibernate的方言 –>-->
|
||||||
<property name="hibernate.dialect">org.hibernate.dialect.SQLServerDialect</property>
|
<!-- <property name="hibernate.dialect">org.hibernate.dialect.SQLServerDialect</property>-->
|
||||||
|
|
||||||
<!-- 可选配置================ -->
|
<!-- <!– 可选配置================ –>-->
|
||||||
<!-- 打印SQL -->
|
<!-- <!– 打印SQL –>-->
|
||||||
<property name="hibernate.show_sql">true</property>
|
<!-- <property name="hibernate.show_sql">true</property>-->
|
||||||
<!-- 格式化SQL -->
|
<!-- <!– 格式化SQL –>-->
|
||||||
<property name="hibernate.format_sql">true</property>
|
<!-- <property name="hibernate.format_sql">true</property>-->
|
||||||
<!-- 自动创建表 -->
|
<!-- <!– 自动创建表 –>-->
|
||||||
<property name="hibernate.hbm2ddl.auto">update</property>
|
<!-- <property name="hibernate.hbm2ddl.auto">update</property>-->
|
||||||
|
|
||||||
<!-- <!– 配置C3P0连接池 –>-->
|
<!-- <!– 配置C3P0连接池 –>-->
|
||||||
<!-- <property name="connection.provider_class">org.hibernate.connection.C3P0ConnectionProvider</property>-->
|
<!-- <property name="connection.provider_class">org.hibernate.connection.C3P0ConnectionProvider</property>-->
|
||||||
|
Loading…
Reference in New Issue
Block a user