springboot 配置yml文件
application.yml:
server:
port: 8080
servlet.context-path: /
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/db_film?useSSL=false&serverTimezone=GMT
username: root
password: '000'
jpa:
hibernate:
ddl-auto: update
naming:
physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
properties:
hibernate:
dialect: org.hibernate.dialect.MySQL5Dialect
show-sql: true
open-in-view: false
thymeleaf:
cache: false
servlet:
multipart:
maxFileSize: 100MB
maxRequestSize: 1000MB
imageFilePath: D://eclipse-jee-photon-R-win32-x86_64/projects/Film/src/main/webapp/static/filmImages/
还没有评论,来说两句吧...