当前位置:网站首页>yml的配置
yml的配置
2022-06-27 11:56:00 【瑾琳】
# LOGGING
logging:
config: logback.xml
file: log/ChangHong.log
# Log file name. For instance `myapp.log`
path: log/
# Location of the log file. For instance `/var/log`
#AUTO-CONFIGURATION
spring:
autoconfigure:
# THYMELEAF (ThymeleafAutoConfiguration)
thymeleaf:
cache: true
# Enable template caching.
check-template: true
# Check that the template exists before rendering it.
check-template-location: true
# Check that the templates location exists.
content-type: text/html
# Content-Type value.
enabled: true
# Enable MVC Thymeleaf view resolution.
encoding: UTF-8
# Template encoding.
excluded-view-names:
# Comma-separated list of view names that should be excluded from resolution.
mode: HTML5
# Template mode to be applied to templates. See also StandardTemplateModeHandlers.
prefix: /
# Prefix that gets prepended to view names when building a URL.
suffix: .html
# Suffix that gets appended to view names when building a URL.
#spring.thymeleaf.template-resolver-order:
# Order of the template resolver in the chain.
view-names:
# Comma-separated list of view names that can be resolved.
# SPRING WEB SERVICES (WebServicesProperties)
webservices:
path: /services
# Path that serves as the base URI for the services.
#spring.webservices.servlet.init:
# Servlet init parameters to pass to Spring Web Services.
servlet:
load-on-startup: -1
# Load on startup priority of the Spring Web Services servlet.
# DATASOURCE (DataSourceAutoConfiguration & DataSourceProperties)
datasource:
continue-on-error: false
# Do not stop if an error occurs while initializing the database.
#spring.datasource.data: # Data (DML) script resource references.
#spring.datasource.data-username: root
# User of the database to execute DML scripts (if different).
#spring.datasource.data-password: bogenmacher2qq
# Password of the database to execute DML scripts (if different).
driver-class-name: com.mysql.jdbc.Driver
# Fully qualified name of the JDBC driver. Auto-detected based on the URL by default.
name: ChangHong
# Name of the datasource.
username: root
password: password
# Login password of the database.
platform: all
# Platform to use in the schema resource (schema-${platform}.sql).
separator: ;
# Statement separator in SQL initialization scripts.
sql-script-encoding: UTF-8
# SQL scripts encoding.
url: "jdbc:mysql://localhost:3306/ChangHong?useUnicode=true&characterEncoding=UTF-8&useSSL=false"
# JDBC url of the database.
#spring.datasource.
# SPRING MVC (WebMvcProperties)
mvc:
async:
request-timeout: 0
# Amount of time (in milliseconds) before asynchronous request handling times out.
date-format: yyyy-MM-dd
# Date format to use. For instance `dd/MM/yyyy`.
dispatch-trace-request: false
# Dispatch TRACE requests to the FrameworkServlet doService method.
dispatch-options-request: true
# Dispatch OPTIONS requests to the FrameworkServlet doService method.
favicon:
enabled: true
# Enable resolution of favicon.ico.
formcontent:
putfilter:
enabled: true
# Enable Spring's HttpPutFormContentFilter.
ignore-default-model-on-redirect: true
# If the content of the "default" model should be ignored during redirect scenarios.
locale:
# Locale to use. By default, this locale is overridden by the "Accept-Language" header.
locale-resolver: accept-header
# Define how the locale should be resolved.
log-resolved-exception: false
# Enable warn logging of exceptions resolved by a "HandlerExceptionResolver".
#media-types:
# *:
# Maps file extensions to media types for content negotiation.
message-codes-resolver-format:
# Formatting strategy for message codes. For instance `PREFIX_ERROR_CODE`.
servlet.load-on-startup: -1
# Load on startup priority of the Spring Web Services servlet.
#static-path-pattern: /resources/
# Path pattern used for static resources.
throw-exception-if-no-handler-found: true
# If a "NoHandlerFoundException" should be thrown if no Handler was found to process a request.
view:
prefix: /resources/
suffix: .html
边栏推荐
- 今晚战码先锋润和赛道第2期直播丨如何参与OpenHarmony代码贡献
- . Net6 access skywalking link tracking complete process
- Microservice splitting
- On ticheck
- Topic37——64. 最小路径和
- R language uses the poisgof function of epidisplay package to test the goodness of fit of Poisson regression and whether there is overdispersion
- 【面试高频题】难度 1.5/5,LCS 模板题
- How to modify a node_ Files in modules
- 面试突击60:什么情况会导致 MySQL 索引失效?
- R语言使用glm函数构建泊松对数线性回归模型处理三维列联表数据构建饱和模型、使用step函数基于AIC指标实现逐步回归筛选最佳模型、解读分析模型
猜你喜欢

Usage of rxjs mergemap

私藏干货分享:关于企业架构中如何进行平台化

亚马逊测评掉评、留不上评是怎么回事呢?要如何应对?

Unity shader learning (I) understanding the basic structure of unity shader

pull request

一个有趣的网络掩码的实验

今晚战码先锋润和赛道第2期直播丨如何参与OpenHarmony代码贡献

Unity shader learning (II) the first shader

2022ciscn central China Web

Secyun won the "2022 AI analysis · it operation and maintenance vendor panorama report" as the representative vendor of intelligent operation and maintenance aiops Market
随机推荐
Neo4j:入门基础(一)之安装与使用
秒云荣获《2022爱分析 · IT运维厂商全景报告》智能运维AIOps市场代表厂商
dried food! What problems will the intelligent management of retail industry encounter? It is enough to understand this article
uni-app 使用escook/request-miniprogram插件发请求说明
Secyun won the "2022 AI analysis · it operation and maintenance vendor panorama report" as the representative vendor of intelligent operation and maintenance aiops Market
手把手带你入门 API 开发
How to modify a node_ Files in modules
Xuri 3sdb, installing the original ROS
Four memory areas (stack, heap, global, code area)
Private dry goods sharing: how to implement platform in Enterprise Architecture
JSP custom tag
R language uses the poisgof function of epidisplay package to test the goodness of fit of Poisson regression and whether there is overdispersion
Nvme2.0 protocol - new features
Detailed explanation of interprocess communication
AI for Science:科研范式、开源平台和产业形态
优博讯出席OpenHarmony技术日,全新打造下一代安全支付终端
Building crud applications in golang
Research Report on the overall scale, major producers, major regions, products and application segments of swine vaccine in the global market in 2022
uniapp下拉弹层选择框效果demo(整理)
私藏干货分享:关于企业架构中如何进行平台化