server:
port: 7090
servlet:
session:
timeout: 1440m
spring :
main:
allow-bean-definition-overriding: true
http:
# Chararcter Encoding filter settings
encoding:
charset: UTF-8
enabled: true
force: true
multipart:
max-file-size: 10M
max-request-size: 20M
defaultEncoding: UTF-8
datasource:
url: jdbc:postgresql://localhost:5432/postgres
username: postgres
password: 123456
driver-class-name: org.postgresql.Driver
type: com.alibaba.druid.pool.DruidDataSource
jpa:
show-sql: true
hibernate:
ddl-auto: none
properties:
hibernate:
temp:
use_jdbc_metadata_defaults: false
# jpa方言 dialect: org.hibernate.dialect.MySQL5Dialect
dialect: org.hibernate.dialect.PostgreSQLDialect
format_sql: true
# 默认的schema
default_schema: dev1
logging:
config: classpath:logback-spring.xml
logback:
level: info #info ,debug
path: D:\test
appname: medical-api
maxHistory: 30 #文件保留30天
这是最近做的一个 关于 spring jpa 的demo