阅读背景:

最近总是找springboot 的配置文件。不想每次创建新项目都找,所以记录一下。

来源:互联网 

springboot  application.yml 配置文件。

server:
  port: 8080
  servlet:
    context-path: /

spring:
  application:
    name: springboot
  jpa:
    show-sql: true
    hibernate:
      ddl-auto: update
    properties:
      hibernate.format_sql: true
    open-in-view: false
    database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
  datasource:
    url: jdbc:mysql://127.0.0.1:3306/test1?autoReconnect=true
    username: root
    password: xxxxx
    tomcat:
      max-active: 4
      min-idle: 2
      initial-size: 2
    hikari:
      maximum-pool-size: 20
      minimum-idle: 5
  thymeleaf:
    mode: HTML
    encoding: UTF-8
    servlet:
      content-type: text/html
    cache: false
  mvc:
    view:
      prefix: classpath:/templates/
    static-path-pattern: /**
  resources:
    static-locations: classpath:/static/server:
  port:



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: