随便记录一下
环境配置
Spring boot (v2.4.1)
Spring Data JPA 2.4.1
application.yml
spring:
datasource:
driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
username: myusername
password: mypassword
url: jdbc:sqlserver://localhost:1433;DatabaseName=MyDatabaseName;charset=UTF-8
jpa:
show-sql: true
properties:
hibernate:
format_sql: true
hibernate:
naming:
physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
ddl-auto: validate
server:
port: 8181
tomcat:
uri-encoding: utf-8
网友评论