########################################################
# # #datasource Connect MySQL
########################################################
Spring.datasource.url = jdbc:mysql://localhost:3306/springboot_db
Spring.datasource.username = root
Spring.datasource.password = 521314
Spring.datasource.driverClassName = Com.mysql.jdbc.Driver
Spring.datasource.max-active=20
Spring.datasource.max-idle=8
Spring.datasource.min-idle=8
spring.datasource.initial-size=10
########################################################
# # # server
############################### #########################
#server. port=8080
#server. address= # bind to a specific NIC
# Server.session-timeout= # Session Timeout in seconds
#the the context path, defaults to '/'
#server. context-path=/ Spring-boot
#server. servlet-path= # The servlet path, defaults to '/'
#server. tomcat.access-log-pattern= # Log Pattern of the Access log
#server. Tomcat.access-log-enabled=false # is Access logging enabled
# Server.tomcat.protocol-header=x-forwarded-proto # SSL forward Headers
#server. tomcat.remote-ip-header= X-forwarded-for
#server. Tomcat.basedir=/tmp # base Dir (usually not needed, defaults to TMP)
# server.tomcat.background-processor-delay=30; # in seconds
#server. tomcat.max-threads = 0 # The number of threads in protocol handler
#server. tomcat.uri-encoding = UT F-8 # character encoding to use for URL decoding
########################################################
# # # Java Persistence Api
################## ######################################
# Specify the DBMS
Spring.jpa.database = MYSQL
# Show or not log for each SQL query
Spring.jpa.show-sql = True
# Hibernate DDL auto (Create, Create-drop, update)
Spring.jpa.hibernate.ddl-auto = Update
# naming strategy
#[org.hibernate.cfg.improvednamingstrategy # Org.hibernate.cfg.DefaultNamingStrategy]
Spring.jpa.hibernate.naming-strategy = Org.hibernate.cfg.ImprovedNamingStrategy
# Stripped before adding them to the Entity manager)
Spring.jpa.properties.hibernate.dialect = Org.hibernate.dialect.MySQL5Dialect
########################################################
# # #THYMELEAF (thymeleafautoconfiguration) Engine template thymeleaf
########################################################
#前缀 In the Templates directory under the Classpath path, there is an. html file
#spring. thymeleaf.prefix=classpath:/templates/
#后缀
Spring.thymeleaf.suffix=.html
#spring. THYMELEAF.MODE=LEGACYHTML5
#spring. THYMELEAF.MODE=HTML5
# Spring.thymeleaf.encoding=utf-8
#;charset=<encoding> is added
#spring. thymeleaf.content-type=text/ HTML
# set to False for hot refresh
#false关闭缓存
Spring.thymeleaf.cache=false
########################################################
# # #FREEMARKER (freemarkerautoconfiguration) freemarker template
########################################################
Spring.freemarker.allow-request-override=false
Spring.freemarker.cache=false
Spring.freemarker.check-template-location=true
Spring.freemarker.charset=utf-8
Spring.freemarker.content-type=text/html
Spring.freemarker.expose-request-attributes=false
Spring.freemarker.expose-session-attributes=false
Spring.freemarker.expose-spring-macro-helpers=false
#spring. freemarker.prefix=
#spring. freemarker.request-context-attribute=
#spring. freemarker.settings.*=
Spring.freemarker.suffix=.ftl
#spring. freemarker.template-loader-path=classpath:/templates/#comma-separated List
#spring. freemarker.view-names= # Whitelist of view names so can be resolved
Various configurations of application.properties in Spring-boot