當(dāng)前位置:
首頁(yè) >
前端技术
> javascript
>内容正文
javascript
SpringBoot的yml配置文件
生活随笔
收集整理的這篇文章主要介紹了
SpringBoot的yml配置文件
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
1、在src\main\resources下創(chuàng)建application.yml配置文件
spring: datasource: driver-class-name: com.mysql.jdbc.Driverurl: jdbc:mysql://localhost:3306/test?characterEncoding=UTF-8username: rootpassword: rootthymeleaf:mode: HTML5encoding: UTF-8content-type: text/html name: cppdy123?
轉(zhuǎn)載于:https://www.cnblogs.com/jiefu/p/10053098.html
總結(jié)
以上是生活随笔為你收集整理的SpringBoot的yml配置文件的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: linux系统定时任务crond入门
- 下一篇: 用第三方工具类,将JavaBean、Li