diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index b047834..6b0d380 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -8,6 +8,7 @@ spring.datasource.url=jdbc:sqlserver://106.54.219.245:1433;\ loginTimeout=30; spring.datasource.username=myh spring.datasource.password=20231103#MS_Sql + # JPA config spring.jpa.hibernate.ddl-auto=none 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.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl spring.jpa.properties.hibernate.enable_lazy_load_no_trans=true +spring.jpa.open-in-view=false + # spring security config -spring.security.user.name=anchor -spring.security.user.password=20172 \ No newline at end of file +# spring.security.user.name=anchor +# spring.security.user.password=20172 + +# Jwt default expiration time is 15 minutes +app.jwt-expiration-milliseconds = 900000 \ No newline at end of file diff --git a/src/main/resources/hibernate.cfg.xml b/src/main/resources/hibernate.cfg.xml index c7641ce..3892cfa 100644 --- a/src/main/resources/hibernate.cfg.xml +++ b/src/main/resources/hibernate.cfg.xml @@ -4,26 +4,26 @@ "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd"> - - com.microsoft.sqlserver.jdbc.SQLServerDriver - jdbc:sqlserver://intpointer.com:1433;\ - databaseName=Elm;\ - encrypt=true;\ - trustServerCertificate=true;\ - loginTimeout=30; - - myh - 20231103#MS_Sql - - org.hibernate.dialect.SQLServerDialect + + + + + + + + + + + + - - - true - - true - - update + + + + + + + @@ -45,7 +45,7 @@ - - + + \ No newline at end of file