add spring security config

This commit is contained in:
myh 2023-11-22 17:01:28 +08:00
parent 337a77f5e7
commit 03f35009a0
2 changed files with 19 additions and 1 deletions

13
pom.xml
View File

@ -83,6 +83,19 @@
<version>4.13.2</version>
<scope>test</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/org.springframework.security/spring-security-core -->
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-core</artifactId>
<version>6.1.5</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.springframework.security/spring-security-test -->
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-test</artifactId>
<version>6.1.5</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>

View File

@ -1,3 +1,4 @@
# spring boot datasource config
spring.datasource.driver-class-name=com.microsoft.sqlserver.jdbc.SQLServerDriver
server.port=8080
spring.datasource.url=jdbc:sqlserver://intpointer.com:1433;\
@ -7,8 +8,12 @@ spring.datasource.url=jdbc:sqlserver://intpointer.com: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
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 security config
spring.security.user.name=anchor
spring.security.user.password=20172